Dnsmasq Service Not Starting

Please follow the below template, it will help us to help you!

Expected Behaviour:

[dnsmasq should start]

Actual Behaviour:

[dnsmasq doesn't restart]

Debug Token:

[Debug Token: habssn14ak]

Basically I cannot get dnsmasq to start.

Doing a service dnsmasq status brings the following:

● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Sat 2018-07-07 21:34:51 BST; 2min 30s ago
Process: 6485 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=1/FAILURE)
Process: 6483 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)

I have no idea why this started, when I became aware of the issue the pi-hole had been running fine for a while and just stopped working, that's when I checked and dnsmasq wasn't running.

I've tried multiple things, including repairing pi-hole and downloading the earlier FTL versions as I'm on Debian Jessie.

Thanks again.

Is that the full output of sudo service dnsmasq status -l

This is the output of sudo service dnsmasq status -l

dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Sat 2018-07-07 22:41:49 BST; 13h ago
Process: 956 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=1/FAILURE)
Process: 859 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)

Jul 07 22:41:47 NAS dnsmasq[859]: dnsmasq: syntax check OK.
Jul 07 22:41:49 NAS dnsmasq[956]: dnsmasq: junk found in command line
Jul 07 22:41:49 NAS systemd[1]: dnsmasq.service: control process exited, code=exited status=1
Jul 07 22:41:49 NAS systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Jul 07 22:41:49 NAS systemd[1]: Unit dnsmasq.service entered failed state.

I have since tried uninstalling and re-installing pi-hole, then following this post: How do I revert to a previous version of Pi-hole? to do the downgrade, as I am still on Debian Jessie, and I still have the exact same issue.

This is a Debian issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860064

Currently, the solution seems to be removing the dns-root-data package.

This was the exact problem that I was having running

sudo apt-get --purge remove dns-root-data

fixed it up like a charm.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.