JG-mirror/Pihole/ubuntu port 53 fix

8 lines
267 B
Text
Raw Normal View History

2023-09-20 21:34:29 +00:00
#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