On 2/23/24 21:12, Bernd Prager wrote:
Hi,

I am getting this annoying warning in my log files: "not giving name
myhost to the DHCP lease of 192.168.1.171 because the name exists in
/etc/hosts with address 127.0.0" from the dnsmaqs-daemon.

This is the box that actually runs the dhcp daemon for my network and
this host has 2 network interfaces:
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255

with a fixed IP address,

and

wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 192.168.1.171  netmask 255.255.255.0  broadcast 192.168.1.255

that I want to grab the IP address via DHCP.


The /etc.hosts contains:

127.0.0.1       localhost myhost

How do I configure my dnsmasq.conf to solve this?


Dnsmasq is a server.
You should look at the DHCP client if you want to get a lease from a
DHCP server for an interface.

To address the issue, you can simply remove the duplicate host from the
hosts file or make Dnsmasq ignore this file.


What do you need Dnsmasq for?

--
John Doe


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to