[Dnsmasq-discuss] Can I tell dnsmasq not to use one isolated address in a DHCP range
john doe
johndoe65534 at mail.com
Sat Dec 26 15:44:48 GMT 2020
The below assumes that a client can use a fix IP address even though it
is configured on the DHCP server as DHCP static lease.
On 12/26/2020 2:57 PM, 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
>
You could split your range in two smaller ranges living out the IP in
question.
> (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)
>
You could also make Dnsmasq awair of this IP by having a fixed DHCP
lease by using MAC addr/client ID.
>
> 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.
>
I would use 'dhcp-host' instead of the hosts file.
--
John Doe
More information about the Dnsmasq-discuss
mailing list