We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,594 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Ubuntu Server 12.04 Connection Error Solution

If you cannot ping any websites and cannot get updartes or upgrades, you might have a nameserver issue. GI just installed a fresh copy of Ubuntu Server 12.04 and this has been an issue since I installed it. I did not know what to do, but I check the /etc/resolv.conf file and it was totally blank. The format for this should be (as a sample)
search mysite.biz
nameserver ROUTER
nameserver OTHER ROUTER
You might need to tweak this a bit, I just wrote the same router twice. Save the file, exit and voila! Internet connection again!

1
Contributor
2
Replies
2 Weeks
Discussion Span
10 Months Ago
Last Updated
3
Views
PhilEaton
Junior Poster
119 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1

as an update, this file is SUPPOSED to be blank and is only used for non-static machines. it is automatically overwritten a every restart. to permanently fix this, edit /etc/network/interfaces and add the line 'dns-nameservers 192.168.1.1' or whatever you router ip happens to be, and save the file. restart networking '/etc/init.d/networking restart' and voila! internet!

PhilEaton
Junior Poster
119 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1
PhilEaton
Junior Poster
119 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0579 seconds using 2.66MB