LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu LTS After reboot, no DNS (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-lts-after-reboot-no-dns-4175418529/)

tumke 07-25-2012 01:45 AM

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?

Slackyman 07-25-2012 02:21 AM

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

tumke 07-25-2012 02:36 AM

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?

Lexus45 07-25-2012 06:54 AM

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.

Slackyman 07-25-2012 12:28 PM

[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.

SAGOALEXANDER 07-25-2012 02:41 PM

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.


All times are GMT -5. The time now is 05:50 AM.