[Dnsmasq-discuss] error: not giving name to the DHCP lease because the name exists in /etc/hosts

Simon Kelley simon at thekelleys.org.uk
Thu Dec 12 17:15:19 GMT 2019


There's probably an existing lease for 192.168.0.121. Depending on
exactly how the client behaves, these can be difficult to get rid of.
Clearing the leases file is also more difficult than it might seem.


TL;DR If it's working now, that's fine. Ignore it.


Simon.


On 10/12/2019 03:30, isidore.leroux at free.fr wrote:
> Dear all
> 
> I have been trying to resolve that issue for the past 2 days.
> 
> I am using dnsmasq for dns and dhcp, and using the hosts file to statically assigned ip to known hosts.
> 
> It doesn't work with the following error message:
> 
> "not giving name myhost.example.com to the DHCP lease of 192.168.0.121 because the name exists in /etc/hosts with address 192.168.0.7"
> 
> I have cleared the leases file.
> 
> If I had the host in the conf file, it works:
> 
> "dhcp-host=myhost,192.168.0.7"
> 
> /etc/dnsmasq.conf
> 
> #***************************************************
> listen-address=127.0.0.1
> listen-address=192.168.0.1
> 
> server=127.0.0.1 #dnsmasq
> server=208.67.222.222 #OpenDNS
> server=208.67.220.220 #OpenDNS
> 
> interface=eno2
> port=53
> bind-interfaces
> dhcp-authoritative
> 
> domain=example.com
> local=/example.com/
> 
> dhcp-option=eno2,3,192.168.0.1 # gateway
> dhcp-option=eno2,6,192.168.0.1 # DNS
> dhcp-range=eno2,192.168.0.100,192.168.0.254,24h # DHCP
> 
> domain-needed
> expand-hosts
> 
> no-poll
> no-resolv
> bogus-priv
> #***************************************************
> 
> /etc/hosts
> 
> #***************************************************
> 192.168.0.7  myhost
> #***************************************************
> 
> Thanks
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list