Skip to content Skip to sidebar Skip to footer

Temporary failure in name resolution Ubuntu on 20.04.1 LTS

Hello everyone, on this occasion, I will share my experience about the problem I faced, when my server using the Ubuntu 20.04.1 LTS linux operating system could not ping google.com.

ping google.com Temporary failure in name resolution
ping google.com Temporary failure in name resolution

Issue

with the error displayed is ping: google.com: Temporary failure in name resolution

Cause

Third party programs must not access this file directly, but only through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, replace this symlink by a static file or a different symlink.

Resolution

I only use an easy solution, which is to backup the original file first and make a manual resolv.conf directed to the google ip.

Disable systemd-resolved

# systemctl disable systemd-resolved.service

Stop Service systemd-resolved

# systemctl stop systemd-resolved.service

Move File resolv.conf to resolv.conf.ori

# mv resolv.conf resolv.conf.ori

Make file resolv.conf manual

# vi resolv.conf

nameserver 8.8.8.8

save & quit

Trying

# ping 8.8.8.8
# ping google.com
successful ping to google.com
successful ping to google.com

Post a Comment for "Temporary failure in name resolution Ubuntu on 20.04.1 LTS"