Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently experiencing a issue with my dns, affecting 'host' and 'apt-get'. The contents of my /etc/network/interfaces;

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

cat /etc/resolv.conf

cat /etc/resolvconf/resolv.conf.d/base

cat /etc/resolvconf/resolv.conf.d/original

Any assistance would be greatly appreciated.

share|improve this question
what is the output of dig host. replace host with the mirror in question. – strings Jan 8 '13 at 2:11
dig connection timed out; no servers could be reached – user119602 Jan 8 '13 at 2:13
Ive also edtied /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 no luck. – user119602 Jan 8 '13 at 2:17
i guess you should try other dns server such as – neo Jan 8 '13 at 3:59
This server is also inside a virtualbox guest host. This might be worth mentioning. – user119602 Jan 8 '13 at 4:55

1: Remove the line


from /etc/resolvconf/resolv.conf.d/base. It isn't needed, since the same information is included on the dns-nameservers line in the eth0 stanza in /etc/network/interfaces.

2: Make sure that the server at is in fact a DNS name server. If it doesn't, insert the correct IP addresses on the dns-nameservers line in the eth0 stanza in /etc/network/interfaces.

3: Run

sudo dpkg-reconfigure resolvconf

to recreate the symbolic link /etc/resolv.conf -> ../run/resolvconf/resolv.conf since it appears that the symlink is not present.

4: Run

sudo ifdown eth0
sudo ifup eth0

to cause resolv.conf to be regenerated using the latest information on the dns-nameservers line.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.