I had pihole running with dnscrypt successully. After a power outage caused a reboot, DNS and FTL are no longer running.
It appeared that the solution should be to set DNSStubListener=no in resolved.conf to make sure that there is no DNS server running before pihole starts but this does not work (yes i did reboot after changing the setting)
This is what i am seeing..
root@raspberrypi:~# pihole status
[β] DNS service is NOT running
root@raspberrypi:~# pihole restartdns
[β] Restarting DNS server
root@raspberrypi:~# pihole status
[β] DNS service is NOT running
root@raspberrypi:~# pihole-FTL test
dnsmasq: failed to create listening socket for port 53: Address already in use
root@raspberrypi:~# netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 514/vncserver-x11-c
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 552/lighttpd
tcp 0 0 127.0.0.1:10001 0.0.0.0:* LISTEN 349/dnscrypt-proxy
tcp 0 0 127.0.2.1:53 0.0.0.0:* LISTEN 1/init
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 538/sshd
tcp6 0 0 :::5900 :::* LISTEN 514/vncserver-x11-c
tcp6 0 0 :::80 :::* LISTEN 552/lighttpd
tcp6 0 0 :::22 :::* LISTEN 538/sshd
udp 0 0 127.0.2.1:53 0.0.0.0:* 1/init
udp 0 0 0.0.0.0:68 0.0.0.0:* 467/dhcpcd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 374/avahi-daemon: r
udp 0 0 127.0.0.1:10001 0.0.0.0:* 349/dnscrypt-proxy
udp 0 0 0.0.0.0:48454 0.0.0.0:* 374/avahi-daemon: r
udp6 0 0 :::38927 :::* 374/avahi-daemon: r
udp6 0 0 :::5353 :::* 374/avahi-daemon: r
root@raspberrypi:~# cat /etc/systemd/resolved.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=allow-downgrade
#DNSOverTLS=no
#Cache=yes
DNSStubListener=no
#ReadEtcHosts=yes
pihole debug suggests the following....
*** [ DIAGNOSING ]: Ports in use
[53] is in use by systemd (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)
*:5900 vncserver- (IPv6)
*:5900 vncserver- (IPv4)
*:22 sshd (IPv4)
*:22 sshd (IPv6)
[80] is in use by lighttpd
[80] is in use by lighttpd
127.0.0.1:10001 dnscrypt-p (IPv4)
[53] is in use by dnscrypt-p (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)
I have tried stopping dnscrypt-proxy and restarting dns to no avail
root@raspberrypi:~# dnscrypt-proxy -service stop
[2020-06-25 12:35:42] [NOTICE] dnscrypt-proxy 2.0.19
[2020-06-25 12:35:42] [NOTICE] Service stopped
root@raspberrypi:~# pihole restartdns
[β] Restarting DNS server
root@raspberrypi:~# pihole status
[β] DNS service is NOT running
root@raspberrypi:~# pihole-FTL test
dnsmasq: failed to create listening socket for port 53: Address already in use
So I am at something of a loss how to get this back working. Any help gratefully received!