Today DHCP server stopped working properly without making any change in my configuration. Clients can’t get IP address from DHCP. I check the logs and I see that:
2019-06-22 14:18:10 crit dnsmasq[12327]: failed to create listening socket for port 53: Address in use
2019-06-22 14:18:10 crit dnsmasq[12327]: FAILED to start up
I check which process uses port 53, seems that kresd is using it.
Here is my config:
Hi,
Thanks for your reply.
I know that only one process can listen, I tried killing kresd which was already listening on 53/udp, and starting manually dnsmasq, but it seems the init script calls kresd because it was running again after calling the script.
No update for a week or two, I just rebooted the router after noticing the issue.
I had the same problem, the dhcp service just stopped working suddenly today. Rebooted a couple of times, no dice. After reading this I checked my logs, and I also had failures
root@turris:~# cat /var/log/messages | grep FAILED
2019-06-22 16:59:49 crit dnsmasq[3913]: FAILED to start up
2019-06-22 16:59:53 crit dnsmasq[5022]: FAILED to start up
2019-06-22 16:59:58 crit dnsmasq[6192]: FAILED to start up
2019-06-22 17:00:00 crit dnsmasq[6341]: FAILED to start up
2019-06-22 17:00:04 crit dnsmasq[6608]: FAILED to start up
and also option port '53' for the dnsmasq in /etc/config/dhcp. Changing it to option port 0 seems to have solved it, but I’d really like to know what update was pushed today to break it after it’s been working flawlessly for months
Do you know how I can see the most recent updates installed, to figure out what broke dhcp on the turris?
root@turris:~# dnsmasq
dnsmasq: failed to create listening socket for port 53: Address already in use
root@turris:~# cat /var/log/messages | grep FAILED
2019-06-23 09:22:00 crit dnsmasq[7752]: FAILED to start up
2019-06-23 09:22:05 crit dnsmasq[8411]: FAILED to start up
2019-06-23 09:22:10 crit dnsmasq[8683]: FAILED to start up
2019-06-23 09:22:13 crit dnsmasq[8760]: FAILED to start up
2019-06-23 09:22:18 crit dnsmasq[8900]: FAILED to start up
2019-06-23 09:22:23 crit dnsmasq[9989]: FAILED to start up
2019-06-23 09:22:23 crit dnsmasq[10006]: FAILED to start up
2019-06-23 09:22:34 crit dnsmasq[11270]: FAILED to start up
2019-06-23 09:22:45 crit dnsmasq[12628]: FAILED to start up
2019-06-23 09:22:52 crit dnsmasq[13011]: FAILED to start up
What should I do? I believe it started happening after an update in past two or three days.
Apparently dnsmasq still wants to listen on the already occupied port 53 though with the config it should not. Is this happening even after rebooting the router?
If I am not mistaken that file is generated on the fly when dnsmasq gets started, which though however it is not (fails) and thus it probably is logical that the file does not exist.
Missed that - not sure whether that might be due to a different TOS version on my node or the actual cause of the issue. On my node this file /tmp/etc/dnsmasq.conf.cfg0b411c is in residence.
I am afraid I would not know of how else to get to the bottom of it.
as a temporary workaround you could try to manually from the cli dnsmasq -p 0