Temporary failure in name resolution Ubuntu on 20.04.1 LTS

Temporary failure in name resolution Ubuntu on 20.04.1 LTS
Temporary failure in name resolution Ubuntu on 20.04.1 LTS

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 log 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
Bangkit Ade Saputra
Bangkit Ade Saputra At the end of the day, my job involves people. we're complicated, we're always changing, we have millions of things going on in our lives, and changing jobs is always a big decision.

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