LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2012, 01:45 AM   #1
tumke
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Ubuntu LTS After reboot, no DNS


Hi All,
Recently i started building my own webserver.
Setup: Ubuntu LTS 12.04, webmin, virtualmin, apache
After installing Ubuntu, webmin and virtualmin, I made a reboot.

After this reboot, DNS lookups are impossible.
After i add nameservers to: /etc/resolv.conf, dns lookups are working again, offcourse, until the next reboot.
If i look in my dns settings in webmin, everything seems to look fine.

Does anyone have an idea what is going wrong?
 
Old 07-25-2012, 02:21 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Rebbot the system, then check your configuration with:
Code:
sudo ethtool eth0
(maybe you have some daemon setting your network interfaces automatically, so you need to change this behaviour.)
If you don't have ethtool installed then
sudo apt-get install ethtool
Anyway, you can even check your configuration by
cat /etc/network/interfaces

Last edited by Slackyman; 07-25-2012 at 02:23 AM.
 
Old 07-25-2012, 02:36 AM   #3
tumke
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanx for your reply;
I tried your option:
sudo ethtool eth0
sudo: ethtool: command not found

The second option you gave me:

dns-nameservers 62.X.X.X 62.X.X.X
post-up iptables-restore < /etc/iptables.up.rules
# dns-* options are implemented by the resolvconf package, if installed


I fixed it now with the following:
sudo nano /etc/resolvconf/resolv.conf.d/base
addded nameservers

IS this the right solution? Any disadvantages?
 
Old 07-25-2012, 06:54 AM   #4
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
http://akyl.net/changes-dns-resolvco...ecise-pangolin
http://askubuntu.com/questions/13045...ia-resolv-conf
They've made changes. In fact I don't like it.
 
Old 07-25-2012, 12:28 PM   #5
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
[OT]
That F*****G /etc/resolvconf/resolv.conf.d/base is one of the thousands of reasons why someone says "Learn Ubuntu and you'll know Ubuntu. Learn Slackware and you'll know Linux".
I don't like the Ubuntu way neither the Debian style since they're "customizing" too much things.
I don't use Ubuntu since its 10.4 version.
 
Old 07-25-2012, 02:41 PM   #6
SAGOALEXANDER
LQ Newbie
 
Registered: Aug 2011
Location: Tampa, Florida
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
It looks like you fixed this issue already. But I wanted to let you know on some of the newer linux distro's you have to add the nameservers along with your IP address configuration instead of the resolve.conf file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SERFAIL during DNS configuration in ubuntu server 8.04.4 lts. paramvirsinh Linux - Server 2 06-27-2012 08:21 AM
LXer: Ubuntu 12.04 LTS KVM Virtualization Battles 8.04.4, 10.04.4 LTS LXer Syndicated Linux News 0 04-09-2012 11:40 AM
No enough space error when trying upgrade ubuntu from 8.04 lts to 10.04 lts flik shen Ubuntu 5 06-15-2010 12:44 PM
LXer: Installing An Ubuntu Hardy 8.04 LTS DNS Server With BIND LXer Syndicated Linux News 0 06-15-2008 08:00 AM
LXer: I update Ubuntu 6.06 LTS and 8.04 LTS ... one has SSH issues, one does not LXer Syndicated Linux News 0 05-20-2008 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration