I’ve installed Kubuntu 18.04 on a desktop with an ethernet connection. During the installation, updates were downloaded and the internet was working fine. Once the operating system is installed, every time I try to ping any website I get the following error:
Temporary failure in name resolution
I’ve tried the ethernet cable on different computers and it works, so I don’t know what I should do next.
Rui F Ribeiro
54.8k26 gold badges144 silver badges221 bronze badges
asked Mar 7, 2019 at 17:19
There are different possible reasons for a failure in name resolution.
-
You don’t have any internet connectivity. Try
ping -c4 8.8.8.8
If you get answers, then your internet connection works. Else find out why it doesn’t
-
You have the wrong resolver. Type
cat /etc/resolv.conf
You should see at least one line
nameserver a.b.c.d
The
a.b.c.d
is typically the address of your router. If there is no such line, add one. If there is such a line, but it doesn’t work, of if you don’t know the address of your router, trynameserver 8.8.8.8
. This uses the Google DNS servers at8.8.8.8
.
answered Mar 7, 2019 at 18:10
RalfFriedlRalfFriedl
8,5416 gold badges20 silver badges33 bronze badges
3
If you are using VMWARE running linux vm on windows, my experience maybe helpful:
systemctl restart NetworkManager.service
It happens when you havn’t shut down your vm correctly.
answered Apr 26, 2020 at 6:12
2
I solve the problem changing the dns setting in my router and set the google dsn 8.8.8.8, this works for me.
answered Aug 28, 2019 at 4:28
Short Answer:
A misconfigured NAT rule in the Internet GW caused this error in my case, NOT a misconfiguration on the Linux host itself. Check for misconfigured or missing NAT rules in your Internet GW router!
Longer Answer:
I checked, double checked & triple checked all my local networking on the Linux host. I did comparative analysis with other Linux hosts in the same cohort; everything was the same. So why was this host’s DNS now broken?
The answer was found in front of the host on my Internet gateway firewall. I had re-addressed several hosts (I know, never a good thingy ;->), but missed updating the NAT rule for this particular one in the Firewall. It was nothing at all to do with a misconfiguration on the Linux host itself.
But I got so blinkered about that DNS error message that I just assumed it was a misconfiguration of DNS on the host rather than on the firewall. Once I fixed the NAT rule, normal DNS resolution was restored. D’Oh!
So be aware that an incorrect or missing NAT rule for the affected host in your router can cause this error. HTH-
answered Feb 10, 2022 at 0:30
F1LinuxF1Linux
2,1641 gold badge14 silver badges27 bronze badges
Introduction
The «Temporary failure in name resolution» error occurs when the system cannot translate a website name into an IP address. While the error sometimes appears due to a lost internet connection, there are multiple reasons why it may show up on your system.
This tutorial will guide you through troubleshooting and fixing the «Temporary failure in name resolution» error.
Prerequisites
- Sudo or root privileges
- A working internet connection
The error appears when a user attempts to communicate with a website using a command such as ping:
ping phoenixnap.com
The system cannot communicate with the DNS server and returns the error.
The most common cause of this error are the resolv.conf
network configuration file and a misconfigured firewall. The steps to fix the error in both cases are given below.
Method 1: Badly Configured resolv.conf File
resolv.conf
is a file for configuring DNS servers on Linux systems.
To start, open the file in a text editor such as nano.
sudo nano /etc/resolv.conf
Make sure the resolv.conf
file contains at least one nameserver. The lines listing nameservers should look like this:
nameserver 8.8.8.8
If you do not have a nameserver listed in the file, add at least one. 8.8.8.8
and 8.8.4.4
are the popular nameservers owned by Google, but you can add any functional DNS server to this list.
Save the file and exit.
Then, restart the DNS resolver service.
sudo systemctl restart systemd-resolved.service
If successful, the command above returns no output. Test that your new nameservers are correctly configured by pinging a website:
ping phoenixnap.com
If you see the ping command transmitting and receiving data, your DNS server is working properly.
Misconfigured Permissions
If your resolv.conf
file contains valid DNS servers, but the error persists, it may be due to misconfigured file permissions. Change ownership of the file to the root user with the following command:
sudo chown root:root /etc/resolv.conf
Modify the user permissions to allow everybody on the system to read the file:
sudo chmod 644 /etc/resolv.conf
Ping a website again.
ping phoenixnap.com
If wrong file permissions caused the error, the commands above successfully resolve it.
Method 2: Firewall Restrictions
Another reason for the «Temporary failure in name resolution» error may be a firewall blocking one or both of the following ports:
- port 43, used for whois lookup
- port 53, used for domain name resolution
Open the ports in UFW Firewall
Type the following command to allow traffic on port 43 using UFW firewall:
sudo ufw allow 43/tcp
UFW confirms the rule is successfully updated.
Repeat the command for port 53.
sudo ufw allow 53/tcp
Reload UFW with the following command:
sudo ufw reload
The output confirms the operation was successful.
Open the ports in firewalld
Some Linux distributions such as CentOS use firewalld as their default firewall. The syntax to open port 43 in firewalld is:
sudo firewall-cmd --add-port=43/tcp --permanent
firewalld outputs the word success
.
Repeat the command for port 53.
sudo firewall-cmd --add-port=53/tcp --permanent
Reload the firewall.
sudo firewall-cmd --reload
Test the connection by pinging a website.
ping phoenixnap.com
Conclusion
This article provided ways to troubleshoot and fix the «Temporary failure in name resolution» error on Linux. To learn more about diagnosing DNS-related problems, read How to Use Linux dig Command.
When performed by the Discovery Wizard or PowerShell cmdlets, the discovery of UNIX and Linux agents in Operations Manager typically involves three activities:
- Agent deployment
- Certificate signing
- Discovery of the agent
Agent deployment and certificate signing are performed using ssh, but these steps can also be performed
manually. The final agent discovery is performed using a WS-Management query to the deployed agent. The discovery process may fail due to configuration issues, credential or privilege problems, or network and name resolution problems.
This document describes common errors that may be encountered during the discovery process, with potential causes and resolution steps.
Table of Contents
- Certificate Errors/Certificate Signing Errors
- Signed certificate verification operation was not successful
- The SSL certificate could not be checked for revocation
- Certificate signing operation was not successful
- Network/Name Resolution Errors
- The target address is not resolvable
- Failed to resolve name
- DNS configuration: forward DNS resolution does not match reverse DNS resolution
- The target address is unreachable
- SSH Connectivity Errors
- SSH connection error
- Failed during SSH discovery. Exit code: 1
- Invalid SU password
- Failed during SSH discovery. Exit code: -2147221248
- Failed during SSH discovery. Exit code: -2147221248
- WSMan Connectivity Errors
- Invalid credentials
- The target address is unreachable
- Other Errors
- Agent deployment operation was not successful
- No actions are available
- Platform not supported
- Pool Not Initialized
- Unable to copy new agent to this computer
- See Also
Certificate Errors/Certificate Signing Errors
Signed certificate verification operation was not successful
Error Description
Agent verification failed. Error detail: The server certificate on the destination computer (lx1.contoso.com:1270) has the following errors:
The SSL certificate could not be checked for revocation. The server used to check for revocation might be unreachable.
The SSL certificate contains a common name (CN) that does not match the hostname.
It is possible that:
- 1. The destination certificate is signed by another certificate authority not trusted by the management server.
- 2. The destination has an invalid certificate, e.g., its common name (CN) does not match the fully qualified domain name (FQDN) used for the connection. The FQDN used for the connection is: lx1.contoso.com.
- 3. The servers in the resource pool have not been configured to trust certificates signed by other servers in the pool.
Possible Causes
- The agent certificate’s CN value does not match the provided or resolved Fully-Qualified Domain name
Resolutions
- For certificate CN failures, confirm that that agent host’s hostname and domain name match the Fully-Qualified Domain Name resolved through DNS. More information can be found
here.
↑ Return to Top
The SSL certificate could not be checked for revocation
Error Description
The server certificate on the destination computer (lx1.contoso.com:1270) has the following errors:
The SSL certificate could not be checked for revocation. The server used to check for revocation might be unreachable.
The SSL certificate contains a common name (CN) that does not match the hostname.
It is possible that:
- 1. The destination certificate is signed by another certificate authority not trusted by the management server.
- 2. The destination has an invalid certificate, e.g., its common name (CN) does not match the fully qualified domain name (FQDN) used for the connection. The FQDN used for the connection is: lx1.contoso.com.
- 3. The servers in the resource pool have not been configured to trust certificates signed by other servers in the pool.
Possible Causes
- The certificate has been signed by an untrusted authority, when multiple Management Servers are members of the Resource Pool used for discovery, but certificate trust has not been configured between the Management Servers.
Resolutions
- Confirm that all Management Servers in the Resource Pool used for Discovery trust each other server’s certificate. More information can be found
here.
↑ Return to Top
Certificate signing operation was not successful
Possible Causes
- The user account specified for discovery has insufficient privileges to perform file operations involved in signing
- Sudo elevation privileges for the user account specified for discovery was not correctly configured
Resolutions
- Inspect the StdErr output in the error details to identify the cause of the failure
- Verify sudo privilege configuration for the account used for certificate signing
↑ Return to Top
Network/Name Resolution Errors
The target address is not resolvable
Error Description
Failed to resolve IP address 192.168.25.25 to name
Possible Causes
- An IP Address for the host was entered for discovery, but is not resolvable to name in DNS (reverse lookup)
Resolutions
- Correct name resolution (DNS) configuration for reverse lookup
↑ Return to Top
Failed to resolve name
Error Description
Failed to resolve name lxbad.test.com to IP address
Possible Causes
- An FQDN for the host was entered for discovery but is not resolvable to IP Address in DNS (forward lookup)
Resolution
- Correct name resolution (DNS) configuration for forward lookup
↑ Return to Top
DNS configuration: forward DNS resolution does not match reverse DNS resolution
Error Description
The provided hostname host1 resolved to the IP address of 10.137.216.102. The hostname lx1.contoso.com returned by reverse lookup of the IP address 10.137.216.102 did not match the provided hostname. Verify the DNS configuration and try the request again.
Possible Causes
- Forward and reverse DNS lookups do not match
Resolutions
- Correct name resolution (DNS) configuration for forward and/or reverse lookup
↑ Return to Top
The target address is unreachable
Error Description
The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for Windows Remote Management service is enabled.
Possible Causes
- The host is unreachable due to incorrect name resolution, network outage, or host outage
- A network or host-based firewall is blocking TCP port 1270 connectivity to the target host
Resolutions
- Verify that Management Server can ping the agent host by Fully-Qualified Domain Name
- Verify that no network firewalls or host firewall is blocking TCP port 1270
↑ Return to Top
SSH Connectivity Errors
SSH connection error
Error Description
Failed during SSH discovery. Exit code: -1073479162
Standard Output:
Standard Error:
Exception Message:An exception (-1073479162) caused the SSH command to fail - No connection could be made because the target machine actively refused it.
Possible Causes
- The ssh daemon is not running on the target system
- A network or host-based firewall is preventing ssh connections on TCP port 22
Resolutions
- Verify that the ssh daemon is running
- Verity that no network firewalls or host firewall is blocking TCP port 22
↑ Return to Top
Failed
during SSH discovery (Exit code: -1073479118)
Error Description
Failed during SSH discovery. Exit code: -1073479118
Standard Output:
Standard Error:
Exception Message:An exception (-1073479118) caused the SSH command to fail - Server sent disconnect message: type 2 (protocol error : Too many authentication failures for root)
Possible Causes
- The user account specified for discovery is not permitted to login via ssh.
- The user account specified for discovery was input with an invalid username or password
Resolutions
- Verify that the user is permitted to login via ssh
- Verify the input credentials and that the user is defined on the target host
↑ Return to Top
Failed during SSH discovery. Exit code: 1
Error Description
Failed during SSH discovery. Exit code: 1
Standard Output: Sudo path: /usr/bin/
Standard Error: sudo: sorry, you must have a tty to run sudo
Exception Message:
Possible Causes
- Sudo elevation was selected in the user credential input, but the requiretty option was not disabled for the user in sudoers.
Resolutions
- Edit the sudoers file on the target host (using the visudo command) and add the following line, replacing “” with the name of the user account specified for discovery:
Defaults: !requiretty
More information is available
here.
Invalid SU password
Error Description
.[?1034hopsuser@lx1:~> su - root -c 'sh /tmp/scx-opsuser/GetOSVersion.sh; EC=$?; rm -rf
/tmp/scx-opsuser; exit $EC'
Password:
exit
su: incorrect password
opsuser@lx1:~> exit
logout
Possible Causes
- Su elevation was selected in the user credential input, but an invalid root password was provided for su elevation
Resolutions
- Verify the password input for root in the Elevation configuration dialog
↑ Return to Top
Failed during SSH discovery. Exit code: -2147221248
Error Description
Failed during SSH discovery. Exit code: -2147221248
Standard Output:
Standard Error: Could not chdir to home directory /home/username: No such file or directory
Possible Causes
- The user account specified for discovery does not have a home directory
Resolutions
- Verify that the user has a home directory at: /home/ and that the user is able to write to this directory
↑ Return to Top
Failed during SSH discovery. Exit code: -2147221248
Error Description
Failed during SSH discovery. Exit code: -2147221248
Standard Output:
Standard Error: root's password:
Exception Message:Operation timed out
Possible Causes
- Sudo elevation was selected in the user credential input, but the user account specified for discovery is not correctly configured to use passwordless sudo elevation or the required sudo elevation privileges were not granted for the user account used in
discovery.
Resolutions
- Review sudo elevation configuration documentation and verify user configuration for sudo. Note that passwordless sudo must be configured.
↑ Return to Top
WSMan Connectivity Errors
Invalid credentials
Error Description
The agent responded to the request but the WSMan connection failed due to : Access is Denied.
Possible Causes
- The agent is installed, and the agent certificate has been signed, but the user credential provided for agent verification is invalid.
- The user account specified for discovery was configured to authenticate with an ssh key, but the user credential provided for agent verification is invalid.
Resolutions
- Verify that the username and password for agent verification were input correctly and that the user is a valid user on the target host.
↑ Return to Top
The target address is unreachable
Error Description
WSMan Only Discovery failed for 192.168.1.30
Possible Causes
- The Discovery Type option was set to “Only computers with an installed agent and signed certificate,” the target host has the agent installed, but the target host certificate has not been signed. In order to use the WSMan-only “Only computers with an installed
agent and signed certificate” option, the agent must be installed and the certificate manually signed. - The Discovery Type option was set to “Only computers with an installed agent and signed certificate,” but the target host does not have the UNIX/Linux agent currently installed.
- The Discovery Type option was set to “Only computers with an installed agent and signed certificate,” but the UNIX/Linux agent is not currently running.
- The Discovery Type option was set to “Only computers with an installed agent and signed certificate,” but the target host is unreachable, a network or host-based firewall is preventing connectivity, or the UNIX/Linux agent is currently down.
Resolutions
- Manually sign the certificate
- Verify that the UNIX/Linux agent has been installed
- Change the option to “Discover all computers” to allow the Discovery Wizard to perform the certificate signing
- Verify that the UNIX/Linux agent is running and that the target host is reachable
- Verify that no network firewalls or host firewall are preventing access on TCP port 1270
↑ Return to Top
Other Errors
Agent deployment operation was not successful
Error Description
The task cannot be executed against the object(s) because the target of the task does not match any of the classes of the object.
Possible Causes
- In a System Center 2012 – Operations Manager management group, the UNIX/Linux management packs imported are Operations Manager 2007 R2 versions.
Resolutions
- Import the System Center 2012 versions of the UNIX/Linux operating system management packs.
↑ Return to Top
No actions are available
Error Description
The agent is installed and the computer is already being monitored by Operations Manager.
Possible Causes
- The target host has already been discovered in this Management Group
Resolution
- No action is required. Agent upgrade or migration to an alternate resource pool can be performed from the UNIX/Linux Servers view in the Administration pane of the Operations Console
↑ Return to Top
Platform not supported
Error Description
Failed to find a matching supported agent instance in the imported management packs.
Import the Management Pack(s) for this platform in order to discover this computer.
Possible Causes
- The target host is running an unsupported operating system.
- The correct management pack for the target host’s operating system has not been imported.
- The correct management pack for the operating system has recently been imported, and has not yet fully loaded.
Resolutions
- Confirm that the target host is running a supported operating system.
- Import the management pack for the target host’s operating system and version
- If the management pack was just imported, it may still be loading. Wait a few minutes and rerun discovery.
↑ Return to Top
Pool Not Initialized
Error Description
Unable to enumerate Installable agent types. The associated resource pool may still be initializing. If you had selected a newly created resource pool, please wait a few minutes before using it.
Possible Causes
- The Resource Pool used in discovery is not healthy (a majority of member servers are offline).
- The Resource Pool used in discovery was recently created but has not fully initialized.
Resolutions
- If the Resource Pool used in discovery was recently created, retry the discovery after several minutes to allow the pool to initialize.
- Otherwise, check the Operations Manager Event Log on the servers that are members of the Resource Pool used for discovery for indications of problems.
< en-US, Linux, Operations Manager 2012, System Center 2012, Unix, OpsMgr 2012, SCOM 2012 >
↑ Return to Top
Unable to copy new agent to this computer
Error Description
Message: Unable to copy new agent to this computer
Details:
Failed to copy kit. Exit code: -1073479144
Standard Output:
Standard Error:
Exception Message: An exception (-1073479144) caused the SSH command to fail
Possible Causes
- Latest verified occurrence: 7.5.1038.0
- File agent version mismatch between database and agent repository
Resolutions
- Try to update the failed agents again. Usually, the list of failed will get shorter and shorter during every update iteration
- Verify that the failed ones are all failing because of this issue. Otherwise, you’ve to apply other troubleshooting steps.
- Restart the Health Service on all members of your Linux Resource Pool or other Pool for managing UnixLinux machines. Check %ProgramFiles%Microsoft System Center 2012 R2Operations ManagerServerAgentManagementUnixAgentsDownloadedKits folder if file
names are correct. Remember to close and re-open Discovery Wizard.
↑ Return to Top
See Also
- Manually installing and troubleshooting Operations Manager 2012 R2 Linux/UNIX Agents
↑ Return to Top
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.
For example, when you try to ping a website, you might bump into the error shown:
[email protected]:~$ 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.
[email protected]:~$ ping google.com
2. Firewall Restrictions
If the first solution did not work for you, firewall restrictions could be preventing you from successfully performing DNS queries. Check your firewall and confirm if port 53 (used for DNS – Domain Name Resolution ) and port 43 (used for whois lookup) are open. If the ports are blocked, open them as follows:
For UFW firewall (Ubuntu / Debian and Mint)
To open ports 53 & 43 on the UFW firewall run the commands below:
$ sudo ufw allow 53/tcp $ sudo ufw allow 43/tcp $ sudo ufw reload
For firewalld (RHEL / CentOS / Fedora)
For Redhat based systems such as CentOS, invoke the commands below:
$ sudo firewall-cmd --add-port=53/tcp --permanent $ sudo firewall-cmd --add-port=43/tcp --permanent $ sudo firewall-cmd --reload
It’s our hope that you now have an idea about the ‘temporary failure in name resolution‘ error and how you can go about fixing it in a few simple steps. As always, your feedback is much appreciated.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
I’ve installed Kubuntu 18.04 on a desktop with an ethernet connection. During the installation, updates were downloaded and the internet was working fine. Once the operating system is installed, every time I try to ping any website I get the following error:
Temporary failure in name resolution
I’ve tried the ethernet cable on different computers and it works, so I don’t know what I should do next.
Rui F Ribeiro
54.8k26 gold badges144 silver badges221 bronze badges
asked Mar 7, 2019 at 17:19
There are different possible reasons for a failure in name resolution.
-
You don’t have any internet connectivity. Try
ping -c4 8.8.8.8
If you get answers, then your internet connection works. Else find out why it doesn’t
-
You have the wrong resolver. Type
cat /etc/resolv.conf
You should see at least one line
nameserver a.b.c.d
The
a.b.c.d
is typically the address of your router. If there is no such line, add one. If there is such a line, but it doesn’t work, of if you don’t know the address of your router, trynameserver 8.8.8.8
. This uses the Google DNS servers at8.8.8.8
.
answered Mar 7, 2019 at 18:10
RalfFriedlRalfFriedl
8,5416 gold badges20 silver badges33 bronze badges
3
If you are using VMWARE running linux vm on windows, my experience maybe helpful:
systemctl restart NetworkManager.service
It happens when you havn’t shut down your vm correctly.
answered Apr 26, 2020 at 6:12
2
I solve the problem changing the dns setting in my router and set the google dsn 8.8.8.8, this works for me.
answered Aug 28, 2019 at 4:28
Short Answer:
A misconfigured NAT rule in the Internet GW caused this error in my case, NOT a misconfiguration on the Linux host itself. Check for misconfigured or missing NAT rules in your Internet GW router!
Longer Answer:
I checked, double checked & triple checked all my local networking on the Linux host. I did comparative analysis with other Linux hosts in the same cohort; everything was the same. So why was this host’s DNS now broken?
The answer was found in front of the host on my Internet gateway firewall. I had re-addressed several hosts (I know, never a good thingy ;->), but missed updating the NAT rule for this particular one in the Firewall. It was nothing at all to do with a misconfiguration on the Linux host itself.
But I got so blinkered about that DNS error message that I just assumed it was a misconfiguration of DNS on the host rather than on the firewall. Once I fixed the NAT rule, normal DNS resolution was restored. D’Oh!
So be aware that an incorrect or missing NAT rule for the affected host in your router can cause this error. HTH-
answered Feb 10, 2022 at 0:30
F1LinuxF1Linux
2,1641 gold badge14 silver badges27 bronze badges
DNS errors such as temporary failure in name resolution can easily cripple your server. You will not be able to install any yum packages, you will even not be able to ping google.com, because as you can see this is a name resolution error, which means your server can not resolve domain names to their respective IP Addresses (if you know about DNS, you will know that this is something the whole internet relies on).
In this article we will see how to resolve temporary failure in name resolution error, we will discuss various reasons and their respective solutions.
Missing DNS Server IPs
Every server needs IP of DNS servers to which they can send their DNS queries. So if IPs of DNS servers are not configured then your server doesn’t know how to resolve domain names to IP Address thus you will end up getting temporary failure in name resolution.
In UNIX based system (Linux servers). DNS servers are usually configured in a file called /etc/resolv.conf. So if you don’t have this file or it is empty then you can not resolve domain names, make sure to create one and put the following contents in it:
nameserver 1.1.1.1
nameserver 8.8.8.8
Network Manager
Recently most of the Linux based servers are shipped with NetworkManager. NetworkManager help your connect your server automatically to the internet, for this task network manager auto-generates some configuration files. NetworkManager reads your interface file (eth0 or ifcfg) and then auto-generates /etc/resolv.conf file.
Now if you have not defined DNS servers in your /etc/sysconfig/network-scripts file, then /etc/resolv.conf will remain empty, thus you end up getting temporary failure in name resolution error. You can also fix this issue by just populating /etc/resolv.conf file as described above.
Also, make sure that in your /etc/sysconfig/network-scripts file set NM_CONTROLLED=no. So that NetworkManager will not update your /etc/resolv.conf file again.
Having issues installing packages on Ubuntu
You might see something like
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving ‘security.ubuntu.com’
Err:2 http://dl.google.com/linux/mod-pagespeed/deb stable InRelease
Temporary failure resolving ‘dl.google.com’
Err:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:4 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:5 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Temporary failure resolving ‘mirrors.digitalocean.com’
Err:6 https://repos.sonar.digitalocean.com/apt main InRelease
Could not resolve host: repos.sonar.digitalocean.com
This is an example of temporary failure in name resolution error, as apt can not resolve these mentioned domains to their IP Address. Make sure to allow these ports in UFW using the command below :
sudo ufw allow out 53,113,123/udp
Restrictions in your Firewall
There might also be a firewall restriction preventing your DNS queries. That is why we always recommend installing CyberPanel for free, CyberPanel will open all default ports for you, it will also help you run a super-fast website. Install CyberPanel for free using the install guide. You can also learn how CyberPanel will help you run the super fast website by reading our OpenLiteSpeed vs NGINX article.
Let see if this is actually a firewall error by stopping the firewall.
Firewalld
systemctl stop firewalld
Or CSF
csf -f
Now test and see if your issue is resolved if so, it means that your firewall is preventing your DNS queries.
Fix for Firewalld
You can add port 53 (UDP) and 43 (whois) to your firewalld. Following commands can be used
firewall-cmd — permanent — add-port=56/udp
firewall-cmd — permanent — add-port=43/tcp
This will open DNS related ports in FirewallD. If you are using CyberPanel you can easily go to CyberPanel firewalld interface and add these ports without going to CLI.
Go to -> https://<IP Address>:8090/firewall/
There you can easily open these two ports.
Fix for CSF
Open file /etc/CSF/csf.conf, then find the line containing TCP_IN and TCP_OUT then add your desired ports. Once your desired ports are added simply restart CSF so that your changes can take effect
csf -r
To remove any ports, you can just remove those ports from same lines and restart CSF.
Again if you are using CyberPanel and you have installed CSF (this will disable Firewalld interface). You can easily go to -> https://<IP Address>:8090/firewall/csf
From there you can add your ports and CyberPanel will take care of everything.
Wrong permissions on /etc/resolv.conf file
In some rare cases it is possible that your resolver file have wrong owner or permissions, execute following commands to implement correct permissions
chown root:root /etc/resolv.conf
chmod 644 /etc/resolv.conf
This should fix any permissions related issues with the resolver file.
Conclusions
I hope by now you have a general idea of what actually is a temporary failure in name resolution error because to fix any error we first need to know what actually it is. Then we’ve also discussed various ways to fix this error in different situations.
If you are a system administrator, then the first rule to solving any problem is stay calm and debug the problem. However, if you don’t have much time and looking for experts to manage your server, you are in the right place, you can hire our managed vps service. We offer 3 days free trial (no credit card required).
What does err_name_resolution_failed mean? This error occurs when there is a problem with an internet connection or issue with firewall settings.
The web page at https://tech-banker.com/ might be temporarily down or it may have moved permanently to a new web address. You may notice the error code 137 as well.
ERROR_NAME_RESOLUTION_FAILED is common on Windows and, more especially, the Google Chrome Browser. There can be multiple issues behind this error.
If you have installed any type of program that needs to communicate with the Internet Connection and this problem occurred just after the installation of that program then, the program you have recently installed can be a suspect to blame.
If you don’t have installed any anti-virus software on your computer, then install it now! It must install on your computer, if you want that your system worked perfectly without any errors.
Resolution to the Err_Name_Resolution_Failed problem
There is a function in windows – Netsh Winsocket Reset, which reset the socket settings of the TCP/TP stack. This’ll resolve your problem. If this doesn’t work for you, I’ve other solutions to fix this issue.
Here are the steps to fix the same issue in Chrome, Firefox:
- Reset Network Settings
- Change DNS Settings
- Reset Google Chrome
Starts with a Preliminary check
Before proceeding to the error fixing, make sure that your Internet connection correctly configured. For example:
1. Check the games or apps which requires the Internet Connection.
2.Check out another website.
Method 1) Reset Network Settings
By Default, Your PC is set to use internet settings configured on your modem or router. Your Internet Service Provider (ISP) provides the default settings & they remain the same unless changed. If the problem deals with the network configuration, just open the Command Prompt as an Administrator and run the following commands.
1. Open a Command prompt as an admin.
2. Run the following commands one by one.
ipconfig /release ipconfig /all ipconfig /flushdns ipconfig /renew netsh int ip set dns netsh winsock reset
3. After executing all the above commands, you must restart your computer.
4. After Restart the computer, Open the Google Chrome Internet browser and try to access the website.
Method 2) Change DNS Settings
The second method is to change your computer DNS and use a public DNS server if there is an issue is with your DNS. Follow the following steps to change the DNS settings:
1. Right click on the Network connection located at the bottom right side of the desktop.
2. Select the open Network and Sharing Center option. This will redirect you to a new window.
3. Click on the Change Adapter Settings situated on the left side on the window.
4. Then, right click on your Internet connection Properties.
5. A popup window will appear. Here, choose Internet Protocol Version 4 (TCP/IPv4) and then click on Properties.
6. After that, replace your Preferred DNS Server to the 8.8.8.8 and Alternate DNS Server to 8.8.4.4 as you can see the following screenshot for better understanding.
7. Now, Click on the OK button.
After making all the Changes, Open Google Chrome and see if the error still insists. If the problem continues, then proceed to the next method.
But before proceeding to the next method, you need to go over the previous steps again and this time remove the google DNS address.
Method 3) Reset Google Chrome
The ultimate method to solve this is to deal with the resetting Google Chrome, To do this:
1. Open Google Chrome. Type chrome://flags/ in the address bar. [without quotes].
2. Hit the Enter button.
3. There is an option Reset all to Default as mentioned in the screenshot. Click on Reset all to default option.
4. Chrome will ask you to relaunch now. Click on Relaunch Now.
5. Last, Launch Chrome again.
If the problem still persists
Have you done everything for resolving the issue but still, the problem has persisted, then clear the cookies and caches of the Chrome.
The method for Cache and cookies is as follows:
1. For Windows, press CTRL+Shift+delete to clear the browsing caches.
A popup appears, click on Clear data.
So, these were the different techniques to fix the Error. After applying all the above methods, if you’re not able to resolve the problem, Restart or Reset your router. If it doesn’t work, contact your ISP provider to know about the problem.
I hope this helps you to learn how to fix this error.
WordPress Plugins
-
Backup Bank -
Captcha Bank -
Captcha Booster -
Clean Up Booster -
Clean Up Optimizer -
Coming Soon Booster -
Contact Bank -
Facebook Like Box -
Gallery Bank -
Gallery Master -
Google Maps Bank -
Limit Attempts Booster -
WP Mail Bank -
WP Mail Booster
Иногда, когда вы пытаетесь проверить связь с веб-сайтом, обновить систему или выполнить какую-либо задачу, требующую активного подключения к Интернету, вы можете получить сообщение об ошибке “temporary failure in name resolution” на вашем терминале.
Например, когда вы пытаетесь проверить связь с веб-сайтом, вы можете столкнуться с указанной ошибкой:
ping itisgood.ru ping: itisgood.ru: Temporary failure in name resolution
Обычно это ошибка разрешения имен, которая показывает, что ваш DNS-сервер не может преобразовать доменные имена в соответствующие IP-адреса.
Это может стать серьезной проблемой, поскольку вы не сможете обновлять или даже устанавливать какие-либо программные пакеты в вашей системе Linux.
В этой статье мы рассмотрим некоторые из причин ошибки «temporary failure in name resolution» и решения этой проблемы.
1. Отсутствующий или неправильно настроенный файл resolv.conf
Файл /etc/resolv.conf – это файл конфигурации резолвера в системах Linux.
Он содержит записи DNS, которые помогают вашей системе Linux преобразовывать доменные имена в IP-адреса.
Если этот файл отсутствует или существует, но ошибка разрешения имени все еще возникает, создайте его и добавьте общедоступный DNS-сервер Google, как показано далее:
nameserver 8.8.8.8
Сохраните изменения и перезапустите службу systemd-resolved, как показано.
$ sudo systemctl restart systemd-resolved.service
Также целесообразно проверить состояние резолвера и убедиться, что он активен и работает должным образом:
$ sudo systemctl status systemd-resolved.service
Затем попробуйте проверить связь с любым веб-сайтом, и проблема должна быть решена.
ping google.com
2. Ограничения межсетевого экрана
Если первое решение вам не помогло, значит ограничения брандмауэра могут помешать вам успешно выполнять DNS-запросы.
Проверьте свой брандмауэр и убедитесь, что порт 53 (используется для DNS ) и порт 43 (используется для поиска whois) открыты.
Если порты заблокированы, откройте их следующим образом:
Для брандмауэра UFW (Ubuntu / Debian и Mint)
Чтобы открыть порты 53 и 43 на брандмауэре UFW, выполните следующие команды:
$ sudo ufw allow 53/tcp $ sudo ufw allow 43/tcp $ sudo ufw reload
Для firewalld (RHEL / CentOS / Fedora)
$ sudo firewall-cmd --add-port=53/tcp --permanent $ sudo firewall-cmd --add-port=43/tcp --permanent $ sudo firewall-cmd --reload
Мы надеемся, что теперь у вас есть представление об ошибке “temporary failure in name resolution” и о том, как ее исправить, выполнив несколько простых шагов.
Как всегда, мы будем благодарны за ваши отзывы и комментарии.