[Dnsmasq-discuss] DHCP for only known hosts.

Sebastian Muñiz sebastian at wircomargentina.com.ar
Thu May 4 15:05:21 BST 2006


Hi List.
I am using dnsmasq as a dhcp server in my wireless lan.
I need dnsmasq just give ips to those declared in a list, and nothing else.
If the dhcp request comes from an unknown mac address it should be discarded.
So, I made a list with some stanzas like

wirserver:~# less /etc/dnsmasq.parts/dhcp-clients.conf
dhcp-host=00:E0:18:18:B6:1E,rotosa,172.16.0.254
dhcp-host=00:50:22:9D:0E:F5,rotosa2,172.16.0.253
Included it at the end of the conf file:
conf-file=/etc/dnsmasq.parts/dhcp-clients.conf

and a dhcp-range like
dhcp-range=172.16.0.0,172.16.0.0,12h

It seems strange, but it works.
However sometimes Dnsmasq gives a random client the ip 172.16.0.0

Is this the right way to do this?

Thanks in advance,
-- 
Sebastian Muñiz






More information about the Dnsmasq-discuss mailing list