[Dnsmasq-discuss] ignoring unknown devices ..

Ben abnormaliti at clivepeeters.com.au
Fri Nov 16 00:50:38 GMT 2007


I need to setup dnsmasq to ignore unknown devices and I have been able 
to do so with 2.40 but I have a configuration issue that I think may be 
a bug.

Here is what i want to have.

    dhcp-range=10.7.5.100,10.7.5.254,24h
    dhcp-ignore=#known
    dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#

    dhcp-host=tc01,10.7.5.13
    dhcp-host=tc02,10.7.5.14

This should, in theory, allocate IPs to devices with  MAC addresses 
listed in the '#hostsfile#' and devices named 'tc01' and 'tc02'.  But 
when "dhcp-ignore=#known" is defined 'tc01' and 'tc02' are ignored.

This config works, but requires the MAC for 'tc01' to be defined.

    dhcp-range=10.7.5.100,10.7.5.254,24h
    dhcp-ignore=#known
    dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#

    dhcp-host=00:20:4a:9c:52:c2,10.7.5.13,tc01

So what i am looking for is to be able to use "#known" and "hostsfile" 
as well as allocate fixed IPs to devices by name.

Is this by design or a bug?

Ben




More information about the Dnsmasq-discuss mailing list