"temporary failure in name resolution" error- (Kali Linux on VB on a MacBook Air)
by EmileDiaz from LinuxQuestions.org on (#4W8R9)
I am working in Kali Linux on VirtualBox on a Macbook Air
I have this persistent issue I am unable to solve. Usually after a reboot, I am unable to access the web via the Kali browser. Also at the same time I am unable to ping a URL in the kali terminal (as in "ping www.google.com") I get a "temporary failure in name resolution" error in the terminal. I am however able to ping an IP address without an issue. So whatever the issue is, it is failing to resolve the urls.
Of course that means that I am also unable to install or update anything on Kali, since Github and other links use URLs rather than IPs for their software repositories, which of course makes sense.
I know the root cause lies somewhere in the resolv.conf file. (At the moment it only reads "nameserver 8.8.8.8")
But I am utterly unable to make any solution stick permanently. My searches have shown that this is perhaps resolv.conf file is recreated each time by Network Manager on restart (Or something like that) I've tried a few solutions that worked for a bit but then stopped working.
I've tried so many solutions that I am afraid I may have messed up the resolv files or directories. So even an image or view of what the directories and the files are supposed to look like may help. (For example, what precisely do I need to have inside of the resolv.conf file?)
Since I can't seem to locate how to add an image to my post, I will try and describe what my current file and directory state looks like: (Focusing only on the resolv files)
Under /etc I have the following three items:
1. "resolv.conf" # a document that reads "nameserver 8.8.8.8"
2. "resolvconf" # a directory that contains two directories named "update.d" and "update-libc.d" Furthermore "update.d" directory contains a document "dnsmasq" and "update-libc.d" directory contains a document called "avahi-daemon"
3. "resolv.conf-original" # a document that reads "nameserver 8.8.8.8" and was possibly made during one of my failed solutions.
I've not messed with the "dnsmasq" or the "avahi-daemon" documents and pretty sure I have not altered any directories. I've only edited the "resolv.conf" document to add that line "nameserver 8.8.8.8" as was suggested on some linux sites, but that's about it.
Sorry for such a messy and long post. But I am desperate for help.
Thanks to anyone in advance who responds.
Emile


I have this persistent issue I am unable to solve. Usually after a reboot, I am unable to access the web via the Kali browser. Also at the same time I am unable to ping a URL in the kali terminal (as in "ping www.google.com") I get a "temporary failure in name resolution" error in the terminal. I am however able to ping an IP address without an issue. So whatever the issue is, it is failing to resolve the urls.
Of course that means that I am also unable to install or update anything on Kali, since Github and other links use URLs rather than IPs for their software repositories, which of course makes sense.
I know the root cause lies somewhere in the resolv.conf file. (At the moment it only reads "nameserver 8.8.8.8")
But I am utterly unable to make any solution stick permanently. My searches have shown that this is perhaps resolv.conf file is recreated each time by Network Manager on restart (Or something like that) I've tried a few solutions that worked for a bit but then stopped working.
I've tried so many solutions that I am afraid I may have messed up the resolv files or directories. So even an image or view of what the directories and the files are supposed to look like may help. (For example, what precisely do I need to have inside of the resolv.conf file?)
Since I can't seem to locate how to add an image to my post, I will try and describe what my current file and directory state looks like: (Focusing only on the resolv files)
Under /etc I have the following three items:
1. "resolv.conf" # a document that reads "nameserver 8.8.8.8"
2. "resolvconf" # a directory that contains two directories named "update.d" and "update-libc.d" Furthermore "update.d" directory contains a document "dnsmasq" and "update-libc.d" directory contains a document called "avahi-daemon"
3. "resolv.conf-original" # a document that reads "nameserver 8.8.8.8" and was possibly made during one of my failed solutions.
I've not messed with the "dnsmasq" or the "avahi-daemon" documents and pretty sure I have not altered any directories. I've only edited the "resolv.conf" document to add that line "nameserver 8.8.8.8" as was suggested on some linux sites, but that's about it.
Sorry for such a messy and long post. But I am desperate for help.
Thanks to anyone in advance who responds.
Emile