Not able to connect to the Network, "Temporary failure in name resolution"

tavv

New Member
Joined
Mar 8, 2023
Messages
6
Reaction score
2
Credits
49
I have just started with the Kali, and after the installation part I'm unable to connect to the network. Interface is working fine it's just firefox ain't returning anything from the server.
When I tried to ping it says "Temporary failure in name resolution", something to do with DNS I guess.

Anybody got any solution?
Would be glad to hear back.
 


If you have a network configuration, meaning you have an ip address from your router and a gateway then you should configure a dns server for your network interface, although usually you get a dns server from your router if you are using dhcp.
 
I'm running Kali inside VM, and another OS outside VM is working fine, and connected to the network, For DNS I'm connected to the mobile hotspot that also has an active connection.
Why is it that Kali hadn't configured the DNS server while installing or might I missed something?
Could you please guide me as to how can I configure it?

Thanks for the response in the first place, I appreciate you helping.
 
Anybody got any solution?
Dont use Kali if you are not experienced in using Linux and are fully competent with the terminal and its commands,
if you are using a VM how are you trying to make your connection,? if using Bluetooth or a built-in Wi-Fi then you cannot do it, if you need an extra [USB connection] that you can enable via the kali usb controller, if you don't, then you must use the bridge connection from your host OS

from the Kali documentation...
As the distribution’s developers, you might expect us to recommend that everyone should be using Kali Linux. The fact of the matter is, however, that Kali is a Linux distribution specifically geared towards professional penetration testers and security specialists, and given its unique nature, it is NOT a recommended distribution if you’re unfamiliar with Linux or are looking for a general-purpose Linux desktop distribution for development, web design, gaming, etc.
 
Dont use Kali if you are not experienced in using Linux and are fully competent with the terminal and its commands,
if you are using a VM how are you trying to make your connection,? if using Bluetooth or a built-in Wi-Fi then you cannot do it, if you need an extra [USB connection] that you can enable via the kali usb controller, if you don't, then you must use the bridge connection from your host OS

from the Kali documentation...
As the distribution’s developers, you might expect us to recommend that everyone should be using Kali Linux. The fact of the matter is, however, that Kali is a Linux distribution specifically geared towards professional penetration testers and security specialists, and given its unique nature, it is NOT a recommended distribution if you’re unfamiliar with Linux or are looking for a general-purpose Linux desktop distribution for development, web design, gaming, etc.
I totally understand that, actually I'm totally new here with this OS as you said. though have some knowledge about these technical terms like DNS et.c. The thing is I just enrolled for CybSec Course and the first assignment was only to Install Kali and now trying with everything I end up posting a question here. For sure as you said will learn about it moving forward.

Thanks for these fruitful suggestions, I'll def get my hands on it moving forward.
 
I'm running Kali inside VM, and another OS outside VM is working fine, and connected to the network, For DNS I'm connected to the mobile hotspot that also has an active connection.
What you don't share people can't know but will then instead make assumptions. Last time I ran Kali in a vm all of the network configuration was done automatically so I would start by looking at what type of network interface your vm has. Does your vm have an ip and gateway?Can you share you vm's op configuration?
 
What you don't share people can't know but will then instead make assumptions. Last time I ran Kali in a vm all of the network configuration was done automatically so I would start by looking at what type of network interface your vm has. Does your vm have an ip and gateway?Can you share you vm's op configuration?
 

Attachments

  • Screenshot 2023-03-08 231315.png
    Screenshot 2023-03-08 231315.png
    76.8 KB · Views: 218
Okay whenn I look for a resolve.conf file in the directory, There isn't any such file.
 
Okay whenn I look for a resolve.conf file in the directory, There isn't any such file.
It is resolv.conf - you added an "e" which is not there, which is why it is not found - usually it is located in /usr/lib/systemd - plus a couple of other places - but this one is the one to modify if need be

Code:
sudo systemctl status systemd-resolved.service
This will let you know if service is Active or Dead - If it is Dead run
Code:
sudo systemctl start systemd-resolved.service
to enable it then run
Code:
sudo systemctl start systemd-resolved.service
to start - the command won’t react in the terminal but in the background, hopefully it’ll fix your problem
 
Last edited by a moderator:
It is resolv.conf - you added an "e" which is not there, which is why it is not found - usually it is located in /usr/lib/systemd - plus a couple of other places - but this one is the one to modify if need be

Code:
sudo systemctl status systemd-resolved.service
This will let you know if service is Active or Dead - If it is Dead run
Code:
sudo systemctl start systemd-resolved.service
to enable it then run
Code:
sudo systemctl start systemd-resolved.service
to start - the command won’t react in the terminal but in the background, hopefully it’ll fix your problem
I got it, mistyped with 'e' here not in terminal, so yes there wasn't any such file idk why. Create one and added nameserver 8.8.8.8 and 8.8.4.4 there, found this from discord.
and it worked, whoa, I'm live, up and running.

Thank you so much for this had followed this systemd-resolved.services then.
This forum is amazing.
Thank you guys all of you.
 

Members online


Top