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

2019-12-12 Thread Simon Kelley


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.ler...@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@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2019-12-09 Thread isidore . leroux
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@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss