0

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
address 10.0.0.14
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 75.75.75.75 75.75.75.76

cat /etc/resolv.conf
nameserver 75.75.75.75
nameserver 75.75.75.76

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

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

Any assistance would be greatly appreciated.

8
  • what is the output of dig host. replace host with the mirror in question.
    – strings
    Jan 8, 2013 at 2:11
  • dig us.archive.ubuntu.com connection timed out; no servers could be reached
    – user119602
    Jan 8, 2013 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, 2013 at 2:17
  • i guess you should try other dns server such as 8.8.8.8
    – neo
    Jan 8, 2013 at 3:59
  • This server is also inside a virtualbox guest host. This might be worth mentioning.
    – user119602
    Jan 8, 2013 at 4:55

1 Answer 1

0

1: Remove the line

nameserver 75.75.75.75

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .