Hey guys, I have a pi-hole which suddenly stop running out of nowehere. I've read DNS Service not running in Pihole - #2 by Jampy and run the suggested fix (to remove the package dns-root-data), but I got this:
osmc@osmc:~$ sudo apt-get --purge remove dns-root-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'dns-root-data' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
DNS service is still not running, and I have tried restarted the service and device, and still fail till now. I've also run the repair option from pihole -r, and nothing works.
Update: Just some more logs from running "systemctl status dnsmasq.service"
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 Mon 2018-07-30 15:02:10 +08; 15s ago
Process: 28785 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FAILURE)*
Appreciate if someone can take a look at this, thanks!
osmc@osmc:~$ sudo systemctl status --full --no-pager dnsmasq.service
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 Mon 2018-07-30 15:19:05 +08; 17h ago
Process: 29573 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FA ILURE)
Jul 30 15:19:05 osmc dnsmasq[29573]: dnsmasq: extraneous parameter at line 37 of /etc/dnsmasq.d/01-pihole.conf
Jul 30 15:19:05 osmc systemd[1]: dnsmasq.service: control process exited, code=e xited status=1
Jul 30 15:19:05 osmc systemd[1]: Failed to start dnsmasq - A lightweight DHCP an d caching DNS server.
Jul 30 15:19:05 osmc systemd[1]: Unit dnsmasq.service entered failed state.
Adding the 01-pihole.conf file in case it is needed:
It looks like OSMC is not currently compatible with Pi-hole. They use an older version of dnsmasq that does not understand the logging=extra parameter. There is an update that we have scheduled to come out in the next few days that may address that problem however. But in the mean time take a look at:
Pi-hole v3.3 and v3.3.1 are not supported on Jessie with dnsmasq < 2.73: