[Dnsmasq-discuss] Feature request:

Simon Kelley simon at thekelleys.org.uk
Thu Mar 10 19:18:16 GMT 2011


On 09/03/11 22:49, Ed W wrote:
> I'm trying to manage as much of my static config as possible using only
> /etc/ethers (managed basically as a small text database)
>
> However, I have a small number of machines where I fudge things a little
> for convenience, eg my laptop I force the same IP on both the wired and
> wireless interface (it allows me to unplug the wired network, walk away
> from my desk and my ssh sessions don't drop).
>
> This config I haven't been able to figure out how to express in
> /etc/ethers notation and I need to use /etc/dnsmasq.conf like:
>
> dhcp-host=01:02:03:04:05:06,06:05:04:03:02:01,192.168.1.222
>
> If it's possible to use ethers could you please describe how?  If it's
> not could I please make a feature request to support this in some future
> release?

The syntax and semantics of /etc/ethers are defined elsewhere: it's not 
possible to extend them without breaking other systems which also read 
/etc/ethers.

The solution is to use --dhcp-hostsfile instead. That gives you all the 
functionality of dhcp-host but in database file.

Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list