You are not logged in.

#1 2015-06-24 00:35:25

vitinho217
Member
Registered: 2014-11-05
Posts: 3

Problem on my /etc/resolv.conf file [SOLVED]

Hello everyone,

I has this issue with my /etc/resolv.conf file last week, here is what happened:

1. I was upgrading my Arch Linux system at my university when one of my friends accidentally unplugged my notebook.

2. The next day i tried to use the internet but i couldn't reach it, i could ping 8.8.8.8 but not ping www.google.com

3. After some research i found out that my /etc/resolv.conf file was edited and when i opened it my university name was set as my nameserver.

4. Since i don't know much about networking and server stuff i edited the file as follow:

nameserver 192.168.0.1

5. Everything worked fine for my WAN but when i tried to connect to another one i can't reach the internet.

I normaly use netctl and wifi-menu for managing my profiles.

Please help me out guys...

Thanks in advance

Last edited by vitinho217 (2015-06-24 12:58:51)

Offline

#2 2015-06-24 00:47:48

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: Problem on my /etc/resolv.conf file [SOLVED]

Look at the info on the wiki they also have alternative DNS server you could use as well

https://wiki.archlinux.org/index.php/Resolv.conf

Offline

#3 2015-06-24 06:51:33

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Problem on my /etc/resolv.conf file [SOLVED]

vitinho217 wrote:

Since i don't know much about networking and server stuff i edited the file as follow:

nameserver 192.168.0.1

5. Everything worked fine for my WAN but when i tried to connect to another one i can't reach the internet.

That nameserver is your router so it won't work for other networks.

Replace it with Google's nameserver (8.8.8.8) or any of the ones in the link provided by Malkymder and set the immutable bit on the file:

# chattr +i /etc/resolv.conf

Offline

#4 2015-06-24 09:42:30

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: Problem on my /etc/resolv.conf file [SOLVED]

Head_on_a_Stick wrote:

Replace it with Google's nameserver (8.8.8.8) or any of the ones in the link provided by Malkymder and set the immutable bit on the file:

# chattr +i /etc/resolv.conf

Otherwise there is also /etc/resolv.conf.head (see https://wiki.archlinux.org/index.php/Re … cd_config)


pkgshackscfgblag

Offline

#5 2015-06-24 12:50:15

vitinho217
Member
Registered: 2014-11-05
Posts: 3

Re: Problem on my /etc/resolv.conf file [SOLVED]

Thanks i'll test some of those DNS names ... and mark this topic as  [SOLVED]  if everything works fine

Last edited by vitinho217 (2015-06-24 12:59:19)

Offline

Board footer

Powered by FluxBB