wireguard-install
wireguard-install copied to clipboard
DNS lookup failure
After running the installation script, with all the default options, DNS lookups began failing.
$user> nslookup google.com
;; communications error to 127.0.0.1#53: connection refused
;; communications error to 127.0.0.1#53: connection refused
;; communications error to 127.0.0.1#53: connection refused
;; no servers could be reached
I added some namerservers to the file /etc/resolv.conf
nameserver 9.9.9.9
nameserver 208.67.222.222
And now it's working.
In the past, I had AdGuard Home installed on my server (DNS port 53), but uninstalled it before using wireguard-install.sh. I guess the script changed some configs, and made my server use 127.0.0.1:53 again?
I am forced to change the file every reboot
what is your operating system (name, version)? what does /etc/resolv.conf
states after running the script? did you used resolvectl
to setup your interfaces and dns servers?
I had the same error, seems like script uses resolvconf, but did not check if systemd-resolved
is installed, so i had to install systemd-resolved
(apt install systemd-resolved
) and setup my public interface to use new DNS server:
$ resolvectl dns ens3 8.8.8.8
same issue here, couldn't find any reasonable solution.
I have the same issue as well. Trying to revert what ever the install script has done.
It may be similar to this issue #479. In that issue, I found a solution that maybe able to help.