JG-mirror/Pihole/ubuntu port 53 fix
James Turland 6e00e0aa3f cleaning
2023-09-20 22:34:29 +01:00

7 lines
267 B
Text

#run these commands to fix port bind error
sudo sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf
sudo sh -c 'rm /etc/resolv.conf && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf'
systemctl restart systemd-resolved