Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
newbie1995
Posts: 1
Joined: 2017-11-17 11:40

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

#1 Post by newbie1995 »

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

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1400
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 175 times

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

#2 Post by steve_v »

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.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Post Reply