[Dnsmasq-discuss] ignoring unknown devices ..

richardvoigt at gmail.com richardvoigt at gmail.com
Fri Nov 16 16:48:12 GMT 2007


On Nov 16, 2007 12:50 AM, Ben <abnormaliti at clivepeeters.com.au> wrote:

> 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


MAC addresses are normally listed in /etc/ethers, not /etc/hosts.  I see
you're using the brand new hostsfile feature, I don't know what version
Simon implemented that but I think 2.40 is new enough.  What format are the
lines in the #hostsfile#?  If you are using a hostsfile, why do you have
dhcp-host lines in the main config?


>
> 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.


I think you need to put the fixed IPs into the hostsfile along with the MAC
address.  Or are you trying to match against the client supplied ID?  That
can't be trusted.


>
> Is this by design or a bug?
>
> Ben
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20071116/58c1457a/attachment.htm


More information about the Dnsmasq-discuss mailing list