Network (DNS?) issue (upgraded F24)

asked 2016-06-27 11:44:54 -0600

Arkantus gravatar image

Hi,

I have singular problem that I discovered yesterday. The thing is I can't connect to internet. The network is fine (wifi connected, although, there is a question mark in place of the strength icon) I can browse the local network, but when I try to run firefox and an address ( www.google.com ) I get a "server not found". When I ping the very same address I get "System Error". But the funny thing is : when I ping 8.8.8.8, or any other ip address everything works. I can also browse the web using tor.

Witch led me to think it's a DNS related issue. I tried setting it to 8.8.8.8 inside NetworkManager but it does not do anything.

I'm out of ideas, so I've come here to seek your help !

Marc.

edit retag flag offensive close merge delete

Comments

Please post the output of cat /etc/resolv.conf and grep ^hosts /etc/nsswitch.conf.

thomaswood gravatar imagethomaswood ( 2016-06-27 11:57:04 -0600 )edit

Thanks,

cat: /etc/resolv.conf: No such file or directory and

hosts: files mdns4_minimal [Nhttps://en.wikipedia.org/wiki/HerbevilleOTFOUND=return] dns myhostname mymachines

That does not seems right...

Arkantus gravatar imageArkantus ( 2016-06-27 12:09:14 -0600 )edit

After further investigation, the file, is here (shown by ls, but if I try to modify it with vim (sudo or not) it show me the mention [New File], like it doesn't exist.

Arkantus gravatar imageArkantus ( 2016-06-27 12:23:30 -0600 )edit
1

sudo vim /etc/resolv.conf

Should work to edit and add a line like nameserver 8.8.8.8

aeperezt gravatar imageaeperezt ( 2016-06-27 15:33:20 -0600 )edit

Yep, I copied the resolv.conf from /run/NetworkManager (or something like that), restarted the service and everything worked fine (expect the question mark in wifi status). but the file is erased on reboot.

Arkantus gravatar imageArkantus ( 2016-06-28 03:36:49 -0600 )edit