Posted: Fri Feb 14, 2020 18:20 Post subject: static leases conflict with /etc/hosts
Why doesn't static leases in Services->Static Leases overwrite corresponding entries in the /etc/hosts file? I made changes to my static leases but now I get many of these syslog entries for devices that had their static address changed:
Feb 14 10:13:35 wrt3200acm_master daemon.warn dnsmasq-dhcp[26148]: not giving name <redacted> to the DHCP lease of #.#.aa.x because the name exists in /etc/hosts with address #.#.aa.y
Those leases go to the dhcp server, which does not have to use the hosts file. THe hosts file is for the operating system and programs if they choose to use it. Then you have dns that can uses the hosts file as well as its own database.
From what I've found it seems that editing /etc/hosts is not an easy task. The wiki says to create a startup script so that the changes are "permanent".