Re: [Dnsmasq-discuss] Question
xerces8 (xerc...@butn.net) wrote on 26 January 2008 12:09: >That is: no dhcp-host=xxx line in dnsmasq.conf, but a line in /etc/hosts: >192.168.100.41 judge > >Regards, >David > >PS: Juggling with MAC addresses is silly, when using hostnames is >so much simpler, easier and robust (it still works if one client >replaces his NIC for whatever reason). dhcp-host lines with MAC addresses are necessary only for dhcp service, not for dns. OTOH, they are necessary if you do dhcp. You could use identifiers sent by the clients instead of MAC addresses but then you have to insure that there are no duplicates. This is only feasible if you have very tight control of all the clients.
Re: [Dnsmasq-discuss] Question
Quoting xerces8 : "Heath Woodson" wrote: Setting this up for the first time and I have a simple question but it isnt clearly answered anywhere. I want to assign ips with DHCP in a static manner can I just use the /etc/host file on the machine running dnsmasq to do this and uncomment this line # Enable the address given for "judge" in /etc/hosts # to be given to a machine presenting the name "judge" when # it asks for a DHCP lease. #dhcp-host=judge I do that by having lines like this in dnsmasq.conf : dhcp-host=judge,192.168.100.41 I tried to do this by putting the entries in /etc/hosts, but it did not work for some reason. Simon, can you help ? Is there an option needed to enable this ? That is: no dhcp-host=xxx line in dnsmasq.conf, but a line in /etc/hosts: 192.168.100.41 judge Regards, David It only works if you have the entry in /etc/hosts AND and entry in dnsmasq.conf telling dnsmasq to read /etc/hosts where appropriate. Meaning that the dhcp-host= lines are required.
Re: [Dnsmasq-discuss] Question
"Heath Woodson" wrote: > Setting this up for the first time and I have a simple question but it isnt > clearly answered anywhere. I want to assign ips with DHCP in a static manner > can I just use the /etc/host file on the machine running dnsmasq to do this > and uncomment this line > # Enable the address given for "judge" in /etc/hosts > # to be given to a machine presenting the name "judge" when > # it asks for a DHCP lease. > #dhcp-host=judge I do that by having lines like this in dnsmasq.conf : dhcp-host=judge,192.168.100.41 I tried to do this by putting the entries in /etc/hosts, but it did not work for some reason. Simon, can you help ? Is there an option needed to enable this ? That is: no dhcp-host=xxx line in dnsmasq.conf, but a line in /etc/hosts: 192.168.100.41 judge Regards, David PS: Juggling with MAC addresses is silly, when using hostnames is so much simpler, easier and robust (it still works if one client replaces his NIC for whatever reason).