[Dnsmasq-discuss] DNS: name-MAC, no DHCP needed

Carlos Carvalho carlos at fisica.ufpr.br
Tue Feb 12 15:08:36 GMT 2008


ToMasz (rangifer at o2.pl) wrote on 12 February 2008 13:03:
 >I'd like to set up dnsmasq to be able to assign names to MAC or IP 
 >addresses. I
 >IPs are served by an extra DHCP server so I don't need this 
 >functionality in dnsmasq.
 >How can I assign a MAC or IP adress to a name without DHCP enabled?

Use a hosts file with the name and IP; by default dnsmasq won't
activate dhcp. If you can't use /etc/hosts you can tell dnsmasq to
read another file with the addn-hosts directive.

You'll have to keep your hosts file in sync with what is in the dhcp
server.



More information about the Dnsmasq-discuss mailing list