[Dnsmasq-discuss] The same address on mulitple interface issue (yet again)...

Simon Kelley simon at thekelleys.org.uk
Fri Sep 26 19:58:41 BST 2008


John Gray wrote:
> Simon Kelley wrote:
> 
>>Since this is invoking somewhat dangerour behaviour, I want to make it
>>explicit, and only have one configuration statement, rather then
>>automagically combining two and then doing dangerous things. Hence
>>
>>dhcp-host=1.2.3.4,<mac-1>,<mac-2>
>>
>>To keep the host definitions is their own file, add
>>
>>dhcp-hostsfile=<myfile>
>>
>>to /etc/dnsmasq.conf and put
>>
>>1.2.3.4,<mac-1>,<mac-2>
>>2.3.4.5,<mac-3>,<mac-4>
>>
>>in <myfile>. Different syntax, same data. I gets reloaded on SIGHUP,
>>just like /etc/ethers.
>>
>>A first stab at this is in
>>
>>http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.46test12.tar.gz
>>
>>
>>if you'd like to try it out. I've not updated the man page yet.
>>
>>
>>Cheers,
>>
>>Simon.
>>
>>
> 
> 
> Hi Simon,
> 
> That's excellent.  The only reason I want to use /etc/ethers was so it
> would be easy to parse for some 3rd party tools for adding/removing
> hosts.  And with separating dhcp-host definitions into a separate file,
> that'll work just as well.
> 
> I really appreciate your willingness to work with this.
> 
> I will try your attached version when I get a little free time.
> 
> John
> 

Cool, I've released 2.46test13, in the same place, which updates the man 
page and subtly alters the way the lease database changes when a lease 
is abandoned. Please try that in preference to test12.


Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list