osdir.com
mailing list archive

Subject: Re: The same address on mulitple interface issue (yet again)... - msg#00074

List: network.dns.dnsmasq.general

Date: Prev Next Index Thread: Prev Next Index
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

--
John Gray gray-mTdMVNIhm3Hby3iVrkZq2A@xxxxxxxxxxxxxxxx
AgoraNet, Inc. (302) 224-2475
314 E. Main Street, Suite 1 (302) 224-2552 (fax)
Newark, De 19711 http://www.agora-net.com


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: The same address on mulitple interface issue (yet again)...

John Gray wrote: Simon Kelley wrote: Code-wise, it wouldn't, but the syntax and semantics of /etc/ethers are not defined by dnsmasq; it's a system file that's potentially used by other tools and I'm not at liberty to extend the format. It's very easy to move you host declarations into a dnsmasq-only configuration file, see dhcp-hostsfile in the dnsmasq man page. Yes, I understand we can't change the format /etc/ethers, but we could superimpose rules on the existing format. Namely that you must define multiple interfaces on adjacent lines if you want them to share the IP. 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. John

Next Message by Date: click to view message preview

Re: The same address on mulitple interface issue (yet again)...

On Thu, Sep 25, 2008 at 10:26 AM, Simon Kelley <simon-xn1N/tgparsycpQjotevgVpr/1R2p/CL@xxxxxxxxxxxxxxxx> wrote: 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. I just wanted to add that I think this is an excellent approach, and I'm looking forward to trying it out myself when I get the chance. -- Brett Warden _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss-YFzxfK+dQ3ZKxzGo0kwUX62ZND6+EDdj@xxxxxxxxxxxxxxxx http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Previous Message by Thread: click to view message preview

Re: The same address on mulitple interface issue (yet again)...

John Gray wrote: Simon Kelley wrote: Code-wise, it wouldn't, but the syntax and semantics of /etc/ethers are not defined by dnsmasq; it's a system file that's potentially used by other tools and I'm not at liberty to extend the format. It's very easy to move you host declarations into a dnsmasq-only configuration file, see dhcp-hostsfile in the dnsmasq man page. Yes, I understand we can't change the format /etc/ethers, but we could superimpose rules on the existing format. Namely that you must define multiple interfaces on adjacent lines if you want them to share the IP. 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. John

Next Message by Thread: click to view message preview

Re: The same address on mulitple interface issue (yet again)...

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.
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by