wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

DNS lookup failure

Open skwzrd opened this issue 1 year ago • 5 comments

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?

skwzrd avatar May 21 '23 00:05 skwzrd

I am forced to change the file every reboot

mcking230 avatar Jun 08 '23 06:06 mcking230

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

mator avatar Jul 26 '23 07:07 mator

same issue here, couldn't find any reasonable solution.

nikit9999 avatar Aug 14 '23 18:08 nikit9999

I have the same issue as well. Trying to revert what ever the install script has done.

Nolux avatar Sep 14 '23 19:09 Nolux

It may be similar to this issue #479. In that issue, I found a solution that maybe able to help.

hdn012 avatar Oct 24 '23 09:10 hdn012