Score:0

Network is unreachable / Temporary failure in name resolution

hn flag

I've been using Ubuntu 22.04.1 LTS (x64) via VMWare (my main OS is Windows 10) for the last month. Recently when I try to ping (www.google.com for example) I get

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

I followed some answers on different posts about this and yesterday, when I added the next line: nameserver 8.8.8.8 to my /etc/resolv.conf it fixed it for me.

Today, after I rebooted the machine this problem happening again, but this time adding the nameserver 8.8.8.8 didn't work, and when I try to ping 8.8.8.8 I get:

ping: connect: Network is unreachable

I tried doing the proposed answers there: Temporary failure in name resolution continuously, connect: Network is unreachable but that didn't help neither.

Additional info: on my main OS (Windows 10 x64) everything is working completely fine.

Now, when I look through my host it seems that the vmnet1 & 8 have no dhcp enabled, but I can't figure out how to enable it.

Thanks for your time!

David avatar
cn flag
Temporary failure in name resolution is typically an ISP issue if it is all sites. Have you contacted them?
Daniel Segal avatar
hn flag
@David My main OS is windows and everything works just fine in it
David avatar
cn flag
I do not see that mentioned in the question. Please update the question and put in this important info.
Daniel Segal avatar
hn flag
@David fixed that now. thought that when I say it's through VM its clear
Score:1
ki flag

In my case, though it's about wsl windows(ubuntu v20), I fixed the problem in the following step.

  1. Check your IP in Ethernet by powershell by powershell> ipconfig.
  2. Modify your /etc/resolv.conf about the line nameserver xxx.xxx.xxx.xxx based on 1st step.
  3. Restart wsl(powershell > wsl --shutdown); In your case, it's VMWare.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.