[Dnsmasq-discuss] 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

Neil Darlow neil at darlow.co.uk
Fri Feb 23 21:09:56 UTC 2024


Hi,

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.

Dnsmasq will then associate myhost with the DHCP request for your dynamically assigned interface IP address.

Regards,
Neil Darlow

On 23 February 2024 20:12:42 GMT, Bernd Prager <bernd at prager.ws> 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?
>
>Any help is appreciated.
>
>Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20240223/ab937b32/attachment.htm>


More information about the Dnsmasq-discuss mailing list