Package: dnsmasq Version: 2.76-5+b1 Severity: normal When dns-root-data installed, dnsmasq will failed to start with :
junk found in command line.
I debug this problem with "-x" In /etc/init.d/dnsmasq, this is the out put of
"journalctl -r":
4月 11 08:48:30 bcat dnsmasq[22850]: + DNSMASQ_USER=dnsmasq
4月 11 08:48:30 bcat dnsmasq[22850]: +
DNSMASQ_OPTS=--conf-file=/etc/dnsmasq.conf --local-service
4月 11 08:48:30 bcat dnsmasq[22850]: + ROOT_DS=/usr/share/dns/root.ds
4月 11 08:48:30 bcat dnsmasq[22850]: + [ -f /usr/share/dns/root.ds ]
4月 11 08:48:30 bcat dnsmasq[22850]: + sed -e s/. IN DS /--trust-anchor=.,/ -e
s/ /,/g /usr/share/dns/root.ds
4月 11 08:48:30 bcat dnsmasq[22850]: + tr \n
4月 11 08:48:30 bcat dnsmasq[22850]: +
DNSMASQ_OPTS=--conf-file=/etc/dnsmasq.conf --local-service . 172800
IN
DS
19036,8,2,49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5 .
172800 IN DS
20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
4月 11 08:48:30 bcat dnsmasq[22850]: + [ ! -d /run/dnsmasq ]
4月 11 08:48:30 bcat dnsmasq[22850]: + exec /usr/sbin/dnsmasq -x
/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d --conf-
file=/etc/dnsmasq.conf --local-service . 172800 IN DS
19036,8,2,49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8f
b5 . 172800 IN DS
20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
4月 11 08:48:30 bcat dnsmasq[22850]: dnsmasq: junk found in command line
4月 11 08:48:30 bcat dnsmasq[22850]: junk found in command line
4月 11 08:48:30 bcat dnsmasq[22850]: FAILED to start up
4月 11 08:48:30 bcat systemd[1]: dnsmasq.service: Control process exited,
code=exited status=1
4月 11 08:48:30 bcat systemd[1]: Failed to start dnsmasq - A lightweight DHCP
and caching DNS server.
4月 11 08:48:30 bcat systemd[1]: dnsmasq.service: Unit entered failed state.
4月 11 08:48:30 bcat systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
4月 11 08:49:05 bcat dnsmasq[22871]: junk found in command line
4月 11 08:49:05 bcat dnsmasq[22871]: FAILED to start up
options after ". 172800 IN DS" are imported from /usr/share/dns/root.ds
After remove dns-root-data, dnsmasq can be started successfully.
--- System information. ---
Architecture:
Kernel: Linux 4.9.0-1-amd64
Debian Release: 9.0
500 unstable 192.168.2.12
500 stable dl.google.com
1 experimental 192.168.2.12
--
Thanks and Regards,
--
Liang Guo
signature.asc
Description: PGP signature

