cat /etc/resolv.conf "no such file or directory"

If none of the more specific forums is the right place to ask

cat /etc/resolv.conf "no such file or directory"

Postby newbie1995 » 2017-11-17 11:50

Hey guys.

I tried to fix my dns leak by editing the line "#prepend domain-name-servers 127.0.0.1" in file /etc/dhcp/dhclient.conf.
After I did that I could not connect to the internet, and I somehow managed to delete my resolv.conf file even though I can still see a file (or is it a buffer?) named resolv.conf in /etc, but when I try to do something with it, I get "no such file or directory". I have tried to reboot my machine but it's still the same, and I've looked at others who had a similar problem in ubuntu but I still can't fix it (I use kali, but I think its the same in debian?)

I am completely new at linux, so I will be grateful if you could explain how to fix it in a way you would to a child :)

Thank you very much for your time
newbie1995
 
Posts: 1
Joined: 2017-11-17 11:40

Re: cat /etc/resolv.conf "no such file or directory"

Postby steve_v » 2017-11-17 12:03

newbie1995 wrote:I use kali, but I think its the same in debian?)
It's not. Kali is not Debian, and Kali is not a desktop OS.

newbie1995 wrote:I am completely new at linux, so I will be grateful if you could explain how to fix it in a way you would to a child :)
Then why are you using Kali?
The advice I would give a "child" is: Don't use Kali unless you are a security specialist and well versed in both GNU/Linux and networking in general.

I'll just leave this snip from the Kali docs here (with added emphasis), in case any more newbs think that running it is a good idea:
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.


If you want help with Kali Linux, go ask on the Kali Linux forums. Prepare for a rough ride.
steve_v
 
Posts: 529
Joined: 2012-10-06 05:31
Location: New Zealand


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable