[Dnsmasq-discuss] problem with not executed /etc/dhcp-script.d/10dhcpscript

Bastian Bittorf bittorf at bluebottle.com
Thu Apr 30 11:16:11 BST 2015


(only CC'ing to openwrt-dev)

under unclear circumstances, dnsmasq does not execute anymore
the dhcp-script. the box in question had a short lowmem-situation,
but dnsmasq itself was not effected (but crond/netifd). dhcp-actions are
working normally. i have debug-output in the first line of the script,
so i can see if it's executed. if i run the script manually, it works...

here some output of the still running OpenWrt-router with dnsmasq v2.72

root at box:~ ps
  PID USER       VSZ STAT COMMAND
    1 root      1396 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u2:0]
    7 root         0 SW<  [khelper]
    8 root         0 SW   [kworker/u2:1]
   58 root         0 SW<  [writeback]
   61 root         0 SW<  [bioset]
   63 root         0 SW<  [kblockd]
   95 root         0 SW   [kswapd0]
  142 root         0 SW   [fsnotify_mark]
  159 root         0 SW   [spi0]
  254 root         0 SW<  [deferwq]
  276 root         0 SW   [khubd]
  345 root         0 SWN  [jffs2_gcd_mtd3]
 1810 root         0 SW<  [ipv6_addrconf]
 1898 root         0 SW<  [cfg80211]
 2047 root      1044 S    /sbin/logd -S 16
 2409 root      1364 S    udhcpc -p /var/run/udhcpc-lo.pid -s /lib/netifd/dhcp.script -f -t 0 -i lo -C
 2814 nobody    1072 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k
 2815 root      1000 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k
 3028 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 3977 root      1136 S    /usr/sbin/uhttpd -f -h /www -r box -c /etc/httpd.conf -x /cgi-bin -t 15 -T 20 -A 1 -E /cgi-bin-404.sh -n 50 -p 80
13467 root       876 S    /sbin/ubusd
13520 root         0 SW   [kworker/0:1]
13521 root      1196 R    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
13522 root      1548 S    -ash
13568 root      1364 R    ps

root at box:~ free
             total         used         free       shared      buffers
Mem:         28828        19860         8968            0         1444
-/+ buffers:              18416        10412
Swap:        14332         3352        10980

root at box:~ uname -a
Linux box 3.14.29 #10 Mon Jan 26 16:54:10 CET 2015 mips
GNU/Linux

root at box:~ cat /var/etc/dnsmasq.conf
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
localise-queries
read-ethers
bogus-priv
expand-hosts
dhcp-script=/etc/dhcp-script.d/10dhcpscript
cache-size=1000
domain=lan
server=/lan/
server=8.8.8.8
except-interface=eth0.2
addn-hosts=/var/run/hosts_olsr
addn-hosts=/etc/local.hosts
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
addn-hosts=/tmp/hosts
conf-dir=/tmp/dnsmasq.d
dhcp-broadcast=tag:needs-broadcast

dhcp-host=00:00:00:00:00:00,127.0.0.2,lo-alias

no-dhcp-interface=eth0.1
dhcp-range=wlan,10.10.35.2,10.10.35.123,255.255.255.128,1h
no-dhcp-interface=eth0.2
dhcp-range=loopback,127.0.0.2,127.0.0.3,255.0.0.0,1h

root at box:~ logread | grep dnsmasq
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: time 1430361229
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: cache size 1000, 0/26 cache insertions re-used unexpired cache entries.
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: queries forwarded 20, queries answered locally 72
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: server 8.8.8.8#53: queries sent 20, retried or failed 0
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: read /etc/hosts - 1 addresses
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: read /tmp/hosts/dhcp - 1 addresses
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: read /etc/local.hosts - 274 addresses
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq[2814]: read /var/run/hosts_olsr - 359 addresses
Thu Apr 30 04:33:49 2015 daemon.info dnsmasq-dhcp[2814]: read /etc/ethers - 0 addresses
Thu Apr 30 04:43:39 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 04:43:39 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 05:13:39 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 05:13:39 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 05:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 05:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 06:13:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 06:13:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 06:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 06:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 07:13:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 07:13:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 07:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 07:43:40 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 08:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 08:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 08:43:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 08:43:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 09:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 09:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 09:43:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 09:43:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 10:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 10:13:41 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 10:43:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 10:43:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 11:13:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 11:13:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias
Thu Apr 30 11:43:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPREQUEST(lo) 127.0.0.2 00:00:00:00:00:00 
Thu Apr 30 11:43:42 2015 daemon.info dnsmasq-dhcp[2814]: DHCPACK(lo) 127.0.0.2 00:00:00:00:00:00 lo-alias

root at box:~ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.9M      3.2M    672.0K  83% /
/dev/root                 3.0M      3.0M         0 100% /rom
tmpfs                    14.1M      4.4M      9.6M  31% /tmp
/dev/mtdblock3            3.9M      3.2M    672.0K  83% /overlay
overlayfs:/overlay        3.9M      3.2M    672.0K  83% /
tmpfs                   512.0K         0    512.0K   0% /dev




More information about the Dnsmasq-discuss mailing list