<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#181818" bgcolor="#FFFFFF"><div dir="auto">Hi,<br><br>Remove myhost from your localhost setting in /etc/hosts and set myhost as your hostname via whatever method your distribution uses. This could be via /etc/hostname, systemd's hostnamectl or via a GUI settings utility.<br><br>Dnsmasq will then associate myhost with the DHCP request for your dynamically assigned interface IP address.<br><br>Regards,<br>Neil Darlow</div><br><br><div class="gmail_quote"><div dir="auto">On 23 February 2024 20:12:42 GMT, Bernd Prager <bernd@prager.ws> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Hi,</p>
<p>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.</p>
<p>This is the box that actually runs the dhcp daemon for my network
and this host has 2 network interfaces:<br>
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br>
inet 192.168.1.2 netmask 255.255.255.0 broadcast
192.168.1.255</p>
<p>with a fixed IP address,</p>
<p>and</p>
<p>wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu
1500<br>
inet 192.168.1.171 netmask 255.255.255.0 broadcast
192.168.1.255<br>
</p>
<p>that I want to grab the IP address via DHCP.</p>
<p><br>
</p>
<p>The /etc.hosts contains:</p>
<p>127.0.0.1 localhost myhost</p>
<p>How do I configure my dnsmasq.conf to solve this?</p>
<p>Any help is appreciated.<br>
</p>
<p>Thank you.<br>
</p>
<p><br>
</p>
</blockquote></div></body>
</html>