0

My computer has ubuntu 14.04 and appears to be connecting to the internet. When I use firefox and try to connect to a site I get the message "Server not found."

The strange thing is that I'm able to connect and use the internet on my laptop that has Fedora 21 on it. Same with my phone.

I've tried reseting the router which doesn't work. The problem also persits for all users on my computer.

Anyone have any idea what could be the problem?

Output: Output

1 Answers1

0

If /etc/resolv.conf does not exist. You must create one and enter the nameserver line

For Example

nameserver 8.8.8.8

Where 8.8.8.8 is the Google DNS Server. You need to put in your DNS Server IP Address.

Note:- /etc/resolv.conf Should automatically get generated but if it is absent you need to create it. After that it should stay there.

Tim
  • 32,861
  • 27
  • 118
  • 178
  • Thanks for setting the format Correct. Appreciate it , Tim !! – Rajat Pandita May 20 '15 at 06:55
  • typically all Linux system will have that file and chances are less of missing it unless its removed by User. Also, its clearly a typo error by OP. Further, adding DNS on /etc/resolv.conf is temporary as it will be vanished upon a system restart. – AzkerM May 21 '15 at 10:19
  • Yes correct. It will wipe out the contents but the file itself remains available for the network scripts to write to. If the file is missing then you have no internet. Just creating a blank file and restarting the Network Daemon or the Machine should be sufficient to regenerate the contents of the file.! – Rajat Pandita May 21 '15 at 10:28