[Dnsmasq-discuss] dhcp-range - must ip address of server be outside that?

Perette Barella perette at barella.org
Mon Dec 28 01:46:35 GMT 2009

On 2009年12月27日, at 19:47, dnsmasq.to.peejay at spamgourmet.com wrote:
> On to another issue now: static ips outside the allocated pool.
> You seem to be implying that it is better not to define static ips in
> dhcpserver config files (that is, it is better to have them outside the
> dhcp range pool). Why?

The obvious failure case is that you boot up a device, dnsmasq happens to give out an address via DHCP because it's in the DHCP pool... and at some later time, someone powers on the machine with the same (but statically configured) IP address.  Now you have two machines with the same IP, and suckage will ensue.

So I'd agree with Rance on this one... Keep your static IPs out of the DHCP range.  dnsmasq does what it can to prevent problems, but you're opening the door to headaches.

If, on the other hand, you're talking about pseudo-static IPs where dnsmasq is configured to give out a specific address from within the pool to a particular machine (via dhcp-host)... it would be nice if dnsmasq guaranteed it and wouldn't give the address out to anyone but the specific MAC address, I'd even guess that it's clever enough to behave this way, but I'm not qualified to guarantee it.  Anyone?


More information about the Dnsmasq-discuss mailing list