NEW Installation failed because of "Temporary failure in name resolution"

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
wmcig
Posts: 3
Joined: Wed Aug 25, 2021 12:17 pm

NEW Installation failed because of "Temporary failure in name resolution"

Post by wmcig »

I am new on DietPi. I have a new RASPI 4 2GB. I tried to install the "ARMv8 64-bit image".

After flashing the sd card with Etcher I put the card into my RASPI and started the device. After I logged into the SSH account the DietPi software told me the following error:

Code: Select all

Checking DNS resolver                                                        │
│  - Command: ping -c 1 -W 10 dns9.quad9.net                                   │
│  - Exit code: 2                                                              │
│  - DietPi version: v7.4.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 |     │
│ DISTRO: 6                                                                    │
│  - Image creator: DietPi Core Team                                           │
│  - Pre-image: From scratch                                                   │
│  - Error log:                                                                │
│ ping: dns9.quad9.net: Temporary failure in name resolution 
I tried it twice and nothing helped me now!!!

What can I do to install it?

When I try to make the ping to "dns9.quad9.net " in my Linux terminal, the ping worked perfectly!

I also saw, that the resolve.conf file is not in the etc-folder of the dietpi-system.

Please help me!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: NEW Installation failed because of "Temporary failure in name resolution"

Post by Joulinar »

if you are on the RPI, could you pls try

Code: Select all

ping -c 1 -W 10 dns9.quad9.net


what is the output of

Code: Select all

cat /etc/resolv.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wmcig
Posts: 3
Joined: Wed Aug 25, 2021 12:17 pm

Re: NEW Installation failed because of "Temporary failure in name resolution"

Post by wmcig »

Joulinar wrote: Wed Aug 25, 2021 12:36 pm if you are on the RPI, could you pls try

Code: Select all

ping -c 1 -W 10 dns9.quad9.net


what is the output of

Code: Select all

cat /etc/resolv.conf
ping -c 1 -W 10 dns9.quad9.net:
─────────────────────────────────────────────────────
DietPi v7.4.2 : 13:49 - Wed 08/25/21
─────────────────────────────────────────────────────
- LAN IP : 192.168.178.40 (eth0)
[ OK ] DietPi-Login | Checking network connectivity
[FAILED] DietPi-Login | Checking DNS resolver
- Command: ping -c 1 -W 10 dns9.quad9.net

root@DietPi:~# ping -c 1 -W 10 dns9.quad9.net
ping: dns9.quad9.net: Temporary failure in name resolution

cat /etc/resolv.conf:
domain fritz.box
search fritz.box
nameserver 192.168.178.40
Last edited by wmcig on Wed Aug 25, 2021 2:59 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: NEW Installation failed because of "Temporary failure in name resolution"

Post by Joulinar »

ok your local IP 192.168.178.40 is your DNS server. Correct? Are you able to ping anything else from your DietPi device like google?

Code: Select all

ping -c 1 -W 10 google.com
If this is not working as well you probably need to change your DNS server.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wmcig
Posts: 3
Joined: Wed Aug 25, 2021 12:17 pm

Re: NEW Installation failed because of "Temporary failure in name resolution"

Post by wmcig »

Joulinar wrote: Wed Aug 25, 2021 2:59 pm ok your local IP 192.168.178.40 is your DNS server. Correct? Are you able to ping anything else from your DietPi device like google?

Code: Select all

ping -c 1 -W 10 google.com
If this is not working as well you probably need to change your DNS server.

1) In my local router I had the false DNS Server IP. I changed it a few days before because of an experiment with PiHole. Now the connection to DietPi is working.

2) BUT: The error message was still there. I researched within DietPi. I changed the settings in Timezone and Locale (UTF) to my local settings.

After this the installation worked perfectly!!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: NEW Installation failed because of "Temporary failure in name resolution"

Post by Joulinar »

are you sure the issue was still the same. Usually time sync issues resulting in different error messages.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply