[Cerowrt-devel] DHCP server not working after dnsmasq restarts

R. redag2 at gmail.com
Wed Aug 13 12:07:40 EDT 2014


Woke up today to find a lack of connectivity/ip address. After some
digging through the logs, it looks like the DHCP server was working
within the first few moments of the router booting up, then sort of
died after dnsmasq was restarted.

While my apprentice eyes cannot figure the reason the DHCP server did
not come alive, they did notice that a root-spawned
"/usr/sbin/dnsmasq" process was missing. I suppose that one could
install a watchdog to make sure that this process is alive. Comments?

Attached is the relevant log explaining the situation.
-------------- next part --------------
Observation of the bad scenario shows no reference to dnsmasq-dhcp after dnsmasq is restarted.
* added for emphasis.
----

Good scenario:

dnsmasq[2599]: exiting on receipt of SIGTERM
dnsmasq[2938]: started, version 2.71 cachesize 5000
dnsmasq[2938]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC
dnsmasq[2938]: DNSSEC validation enabled
dnsmasq[2938]: DNSSEC signature timestamps not checked until first cache reload
*dnsmasq-dhcp[2938]: DHCP, IP range 172.30.42.130 -- 172.30.42.155, lease time 1d
*dnsmasq-dhcp[2938]: DHCP, IP range 172.30.43.100 -- 172.30.43.164, lease time 1d
*dnsmasq-dhcp[2938]: DHCP, IP range 172.30.42.2 -- 172.30.42.27, lease time 1d
dnsmasq[2938]: using local addresses only for domain home.lan
dnsmasq[2938]: reading /tmp/resolv.conf.auto
dnsmasq[2938]: using local addresses only for domain home.lan
dnsmasq[2938]: using nameserver 66.28.0.45#53

Relevant processes (with context):

2575 root      1180 S    /usr/sbin/polipo -c /var/etc/polipo.conf
2938 nobody    2480 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k --dnssec-no-timecheck
*2941 root      2396 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k --dnssec-no-timecheck
3315 root      1128 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
14381 root        0 SW   [kworker/u2:1]
---

Bad scenario:

dnsmasq[2605]: exiting on receipt of SIGTERM
dnsmasq[2985]: started, version 2.71 cachesize 5000
dnsmasq[2985]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC
dnsmasq[2985]: DNSSEC validation enabled
dnsmasq[2985]: DNSSEC signature timestamps not checked until first cache reload
dnsmasq[2985]: using local addresses only for domain home.lan
dnsmasq[2985]: reading /tmp/resolv.conf.auto
dnsmasq[2985]: using local addresses only for domain home.lan
dnsmasq[2985]: using nameserver 66.28.0.45#53

Relevant processes (with context):

2581 root      1180 S    /usr/sbin/polipo -c /var/etc/polipo.conf
2985 nobody    2404 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k --dnssec-no-timecheck
3192 root      1128 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
5599 root         0 SW   [kworker/u2:1]


More information about the Cerowrt-devel mailing list