[Dnsmasq-discuss] Can I tell dnsmasq not to use one isolated?address in a DHCP range

Chris Green cl at isbd.net
Sat Dec 26 15:56:39 GMT 2020


On Sat, Dec 26, 2020 at 03:13:40PM +0000, Alex Morris wrote:
> On Sat, 26 Dec 2020, at 13:57, Chris Green wrote:
> > Is it possible to tell dnsmasq not to use one IP address in a
> > dhcp-range assignment? I have a user on my LAN who has set
> > 192.168.1.121 in their system as their IP address and it's in my 
> > dhcp-range=192.168.1.80,192.168.1.223,12h
> > 
> > (I think they originally used dnsmasq's DHCP to get 192.168.1.121 so
> > it's unlikely to get re-assigned but better safe than sorry)
> > 
> > 
> > As a follow-up I guess that if I want dnsmasq to return a system name
> > for 192.168.1.121 (which it hasn't assigned itself) I'll need to add
> > it to /etc/hosts on the dnsmasq system.
> > 
> 
> Would setting a dhcp-host reservation for that IP address, allocated to 
> a non-existent MAC address, achieve the desired result? 
> 
Yes, I suppose it would.  I can even use the actual address of the
system that has set itself to 192.168.1.121.  It will probably never
ask for an address, but if it does it will get 192.168.1.121 anyway.

Thanks!

-- 
Chris Green



More information about the Dnsmasq-discuss mailing list