Temprory Failure in name resolution

Talal Ahmad

New Member
Joined
Jul 28, 2026
Messages
1
Reaction score
0
Credits
12
Hey Everyone! I am get stuck my dns is not responding whenever I enter command ping google.com I get Temprory Error in name resolution. I make changes in resolv.conf file but it is not working what is the problem and how to solve it.
also I check ping 8.8.8.8 and this is working correctly
 


Hey Everyone! I am get stuck my dns is not responding whenever I enter command ping google.com I get Temprory Error in name resolution. I make changes in resolv.conf file but it is not working what is the problem and how to solve it.
also I check ping 8.8.8.8 and this is working correctly
Welcome.
If ping 8.8.8.8 works, but ping google.com doesn't work, then the resolver cannot obtain an IP address. It's likely a local configuration problem.

To check whether it's a local problem, one can run the following dig command which is instructed to only use the external dns server:
Code:
dig @8.8.8.8 google.com
If the output of that is something that includes the following, (where I've snipped out the extraneous output), the problem is very likely local configuration:
Code:
<snip>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45021
<snip>
;; ANSWER SECTION:
google.com.        269    IN    A    142.250.195.142
<snip>
The above result infers that dns works and port 53 is open, which it needs to be for dns queries, but it's only used the external dns server.

To look at local configuration, the issue could be in the /etc/resolv.conf file. To show the contents, you can run the following and show it here:
Code:
cat /etc/resolv.conf

If /etc/resolv.conf is linked to another file like /run/resolvconf/resolv.conf or similar, show the contents of that file here.

Perhaps the ISP's modem/router is supposed to supply the dns, in which case you can run either of the following to check on the gateway:
Code:
ip r
route -n

To help readers with the problem, the outputs to all of the above commands would best be supplied here using code tags. If unfamiliar with code tags, please read this post: https://linux.org/threads/the-code-tag-and-why-it-matters.57746/#post-276419.
 


Follow Linux.org

Staff online

Members online


Top