Dnsmasq going crazy. looping reading /etc/hosts - SIGHUP floods?

Hi

I have Openwrt 21.02 running nicely on a BT Home Hub 5A (actually a Plusnet clone), but I am seeing syslog filling up with entries from dnsmasq, reloading /etc/hosts and /etc/ethers about once a second! Sample below. It's ok for a while after a reboot, then after some time I get this. Any idea what might be causing it? I thought it might be flood of signals, but I'm unsure how to diagnose. Any help appreciated.

Neil

Tue Sep 28 12:55:55 2021 daemon.info dnsmasq[2663]: read /etc/hosts - 67 addresses
Tue Sep 28 12:55:55 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/odhcpd - 20 addresses
Tue Sep 28 12:55:55 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Tue Sep 28 12:55:55 2021 daemon.info dnsmasq-dhcp[2663]: read /etc/ethers - 63 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /etc/hosts - 67 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/odhcpd - 20 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq-dhcp[2663]: read /etc/ethers - 63 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /etc/hosts - 67 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/odhcpd - 20 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq[2663]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Tue Sep 28 12:55:56 2021 daemon.info dnsmasq-dhcp[2663]: read /etc/ethers - 63 addresses

Those are not errors, just indications for dnsmasq restarting, which can happen for a number of (valid-) reasons. dnsmasq isn't very good at reacting to dynamic configuration changes, therefore the full restart is needed in a number of different circumstances (e.g. adblock refreshes, etc.). Unless it happens continuously, I wouldn't bother too much.

1 Like