dnsmasq-hosts warnings after changing ip leases

Started by NeoDragon, June 24, 2025, 10:39:51 PM

Previous topic - Next topic
Hi,

I recently re-ordered my network to remove a few vlans and make it simpler. However, dnsmasq is throwing a few warnings like this :
Quotenot giving name hostname.local.tld to the DHCP lease of 192.168.1.5 because the name exists in /var/etc/dnsmasq-hosts with address 192.168.3.3

I cannot remove them manually from /var/etc/dnsmasq-hosts, they always come back after restarting the service.

Any ideas ?

Yeah these warnings happen if you have a dhcp host reservation for e.g. host.example.com, and another host with the name "host" tries to register in a dhcp range which has example.com as domain.
Hardware:
DEC740

Since I'm not using those reservation anymore, is there anyway i can remove them ? They don't appear in the gui anymore since I changed them.

I dont understand. Are they not appearing in the dnsmasq host tab anymore, but the file they generated in var/etc/dnsmasq-hosts is still getting populated?
Hardware:
DEC740

Exactly.

Under Hosts tab, i changed the ip address to reflect the changed ranged/subnet, but it seems to have created new ones and did not delete the old ones.

Therefore, under /var/etc/dnsmasq-hosts, both entry exist for the same host. I'm trying to delete the old one.

If you think there is a bug please open an issue on github and the steps how to reproduce it.

Thank you.
Hardware:
DEC740