HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Resolvconf Problem - cannot set nameservers (

sheshes 28th March 2013 15:25

Resolvconf Problem - cannot set nameservers
I am running Ubuntu 12.10 with ISPConfig

I am trying to setup my ISPs nameservers but resolv.conf is never changing. It's stuck on nameserver

I tried editing /etc/network/interfaces and inserted dns-nameservers then resolvconf -u and then ifdown eth0 && ifup eth0. No result

I tried editing /etc/resolvconf/resolvconf.d/base with same parameters, again no result.

I tried disabling resolvconf updates as well as edit the dhcpclient.conf in both /etc/dhcp and /etc/dhcp3 with the prepent-domain again no result.

I'm already frustrated enough and cannot think of anything else to try. I tried google but all the solutions proposed are mentioned above and don't work.

Any help is appreciated

DKLeader 28th March 2013 15:57

Do you have a resolv.conf in /etc/?
I am using Debian Squeeze and had to manually add them.

sheshes 28th March 2013 16:22

yes I do, since ubuntu 12.04 onwards resolv.conf cannot be updated manually!

sheshes 28th March 2013 19:52

Update: I have removed /etc/resolv.conf and run dpkg-reconfigure resolvconf and answered yes to all of the options. The result was that now /etc/resolv.conf is correctly created as a symlink, but still not able to update it as I want to

arisystems 29th March 2013 20:28

Does the NIC have the public IP4 address. I never used Comcast name server IPs when the NIC is the public facing IP. Post the interfaces file... another set of eyes...

TiTex 29th March 2013 21:56

could it be because you have you NIC configured to get IP from DHCP server ?
if so ... dhclient will automaticly update resolv.conf no matter what you've set manually.

by the way /etc/resolv.conf is a symlink for /etc/resolvconf/run/resolv.conf if i'm not mistaken

so i guess you can solve your problem by removing the symlink and create a normal conf file or add a write protect bit to resolv.conf after you've modified it

chattr +i /etc/resolv.conf

pititis 30th March 2013 01:13


echo "nameserver" >TEST
To add this nameserver:

cat TEST | resolvconf -a eth0
To delete this nameserver:

cat TEST | resolvconf -d eth0
eth0 = interface

Try it.

sheshes 1st April 2013 15:10

TiTex & Pititis thanks for your answers.

TiTex my interface is set to static with an added dns-nameservers line as man resolvconf states. dhcp is not enabled. I want to make this work the proper way as I do a lot of update && distro upgrades and it keeps breaking up if everything is not done properly.

Pititis I tried what you suggested. Unfortunately nothing is added in /etc/resolv.conf. It's stuck at nameservers

any other suggestions?

arisystems 1st April 2013 15:57

One more time...
Post the interfaces file. Odds are there is a simple error in it. If nothing else I will cut-n-paste it and try it in a server running here.

sheshes 2nd April 2013 18:25

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static

All times are GMT +2. The time now is 15:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.