Trying to install wireguard - Checking DNS resolver failed Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Totila
Posts: 56
Joined: Sun Aug 04, 2019 8:29 am

Trying to install wireguard - Checking DNS resolver failed

Post by Totila »

Hi there,

I tried installing wireguard via dietpi-software but the DNS resolver check fails which blocks further installation steps.

If that helps: I removed a pihole and wireguard installation to start from scratch.

DNS server has been reset to 8.8.8.8 during uninstall.

Any help would be much appreciated. Thank you!

-K

Code: Select all


┌──────────────────────────────────┤ DietPi-Software ├─────────────────────────────────
Checking DNS resolver                                                                  ││  - Command: ping -c 1 -W 5 one.one.one.one                                             ││  - Exit code: 1                                                                        ││  - DietPi version: v7.2.3 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 | DISTRO: 5     ││  - Image creator: DietPi Core Team                                                     ││  - Pre-image: Raspbian Lite                                                            ││  - Error log:                                                                          ││ PING one.one.one.one(one.one.one.one (2606:4700:4700::1111)) 56 data bytes             ││                                                                                        ││ --- one.one.one.one ping statistics ---                                                ││ 1 packets transmitted, 0 received, 100% packet loss, time 0ms
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Joulinar »

Hi,

sould be easy to fix :)

can you try following just to check

Code: Select all

ping -c 1 -W 5 one.one.one.one
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 56
Joined: Sun Aug 04, 2019 8:29 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Totila »

Same result:

Code: Select all

root@DietPi:~# ping -c 1 -W 5 one.one.one.one
PING one.one.one.one(one.one.one.one (2606:4700:4700::1111)) 56 data bytes

--- one.one.one.one ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Joulinar »

you have IPv6 activated. Is it really used? If not, I recommend to have it deactivated
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 56
Joined: Sun Aug 04, 2019 8:29 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Totila »

I have disabled it on the PI. Resolving works now.

Do I need to disable ipv6 on my Fritzbox (behind a router in bridgemode) as well to establish the VPN tunnel successfully?

Currently, there is no successful handshake using the default wireguard server and client settings.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Joulinar »

if not really needed go for IPv4 only. This will make thinks easier. Personally I'm using a FritzBox behind a Speedport. WireGuard is installed on myRPi4B and working without issues. I completely disabled IPv6 :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
ravenclaw900
Posts: 19
Joined: Sat Jan 09, 2021 4:05 pm

Re: Trying to install wireguard - Checking DNS resolver failed

Post by ravenclaw900 »

Also, from my experience, you won't ever get a successful handshake from inside your network, if you're trying it there, with your public IP address as your endpoint. If you change the address of the endpoint to your device's local IP address, it should work.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Joulinar »

Even if it doesn't make sense, but I can connect to my WireGuard server inside my local network using the DDNS ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 56
Joined: Sun Aug 04, 2019 8:29 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Totila »

So, ipv6 is now disabled on the Fritzbox as well.

But, still no handshake when enabling wireguard on my phone.

I tested within the same WiFi network but also via mobile connection. I cannot SSH into my PI.

Dynamic DNS is setup via dietpi-config and endpoint can be reached (successful test in dietpi).

Port 51820 (upd) forwarding is set up for the PI's IP address on the Fritzbox.

Not sure where to go from here to make wireguard working.

Not even sure if it is the Fritzbox or the pi at this point.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Trying to install wireguard - Checking DNS resolver failed

Post by Joulinar »

If I understood correctly your FritzBox is sitting behind another router. Did you activated port forwarding as well on this box? I guess this is the internet router.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply