How To Fix/Resolve Error – Temporary failure in name resolution – Domain Name Resolution Issue Linux



How To Fix/Resolve Error – Temporary failure in name resolution – Domain Name Resolution Issue Linux

How To Fix/Resolve Error - Temporary failure in name resolution - Domain Name Resolution Issue Linux

Sometimes when you try to ping a website, update a system or perform any task that requires an active internet connection, you may get the error message ‘temporary failure in name resolution’ on your terminal.

Tutorial/Steps to fix name resolution error.

For example, when you try to ping a website, you might bump into the error shown:
ping google.com
ping: tecmint.com: Temporary failure in name resolution

This is usually a name resolution error and shows that your DNS server cannot resolve the domain names into their respective IP addresses. This can present a grave challenge as you will not be able to update, upgrade, or even install any software packages on your Linux system.

In this article, we will look at some of the causes of the ‘temporary failure in name resolution‘ error and solutions to this issue.
1. Missing or Wrongly Configured resolv.conf File

The /etc/resolv.conf file is the resolver configuration file in Linux systems. It contains the DNS entries that help your Linux system to resolve domain names into IP addresses.

If this file is not present or is there but you are still having the name resolution error, create one and append the Google public DNS server as shown

nameserver 8.8.8.8

Save the changes and restart the systemd-resolved service as shown.

$ sudo systemctl restart systemd-resolved.service

It’s also prudent to check the status of the resolver and ensure that it is active and running as expected:

$ sudo systemctl status systemd-resolved.service

Then try pinging any website and the issue should be sorted out.

$ ping google.com

If this video helped you out, don’t forget to like this video and leave your review in comment.

Click here to subscribe to Appychip channel on Youtube: https://www.youtube.com/c/appychip?sub_confirmation=1

Follow us:
https://www.facebook.com/appychip
https://twitter.com/appychip

Copyright © 2019, 2020, 2021 Appychip (All rights reserved)

Comments are closed.