|
Re: Multiple host names (CNAME-ish behavior): msg#00046network.dns.dnsmasq.general
Joshua J. Kugler wrote: I found this post in the archives: The post you reference is about the best you can do, but it does doesn't require a static IP, ie the host doesn't have to know it's IP address. In the example, the host knows its name, and dnsmasq uses that to assign the IP address by DHCP. If you want to use the MAC address instead, just add that to the dhcp-host line. /etc/hosts: 192.168.0.254 studio.internal studio ads db images boatertalk tys /etc/dnsmasq.conf: dhcp-host=studio,00:11:22:33:44:55 That implements binding the MAC and doing static IP - what you want. If you like, you can put the name<->MAC mapping in /etc/ethers instead (you have to enable reading /etc/ethers in /etc/dnsmasq.conf) /etc/dnsmasq.conf: read-ethers /etc/ethers: 00:11:22:33:44:55 studio HTH Simon.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Multiple host names (CNAME-ish behavior): 00046, Joshua J. Kugler |
|---|---|
| Next by Date: | Re: Multiple host names (CNAME-ish behavior): 00046, Joshua J. Kugler |
| Previous by Thread: | Multiple host names (CNAME-ish behavior)i: 00046, Joshua J. Kugler |
| Next by Thread: | Re: Multiple host names (CNAME-ish behavior): 00046, Joshua J. Kugler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |