运行aptitude / apt-get将重置归档查找地址

在使用aptitude更新ubuntu 12.04.02 lts box时出现问题 – 似乎每当我运行aptitude或apt-get时,dns查找值都会发生变化。

例如:干净的重启:

me@server:~# ping us.archive.ubuntu.com PING us.archive.ubuntu.com (91.189.91.14) 56(84) bytes of data. 64 bytes from orobas.canonical.com (91.189.91.14): icmp_req=1 ttl=49 time=49.4 ms 

好的 – 正确解决。 运行aptitude:

 me@server:~# aptitude update Get:1 http://us.archive.ubuntu.com precise InRelease [4,254 B] Get:2 http://us.archive.ubuntu.com precise-security InRelease [4,281 B] Get:3 http://us.archive.ubuntu.com precise-updates InRelease [4,278 B] Err http://us.archive.ubuntu.com precise-security Release.gpg Got a single header line over 360 chars Err http://us.archive.ubuntu.com precise Release.gpg Got a single header line over 360 chars Err http://us.archive.ubuntu.com precise-updates Release.gpg Got a single header line over 360 chars Ign http://us.archive.ubuntu.com precise-security Release Ign http://us.archive.ubuntu.com precise Release Ign http://us.archive.ubuntu.com precise-updates Release 100% [Connecting to guidetest.a.id.opendns.com (67.215.65.132)] 

这很奇怪 – 不是正确的IP地址。 Opendns正在返回一个错误页面。 再次尝试ping:

 me@server:~# ping us.archive.ubuntu.com PING us.archive.ubuntu.com (67.215.65.132) 56(84) bytes of data. 64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=1 ttl=52 time=16.5 ms 

没有代理安装,opendns cachecheck显示正确的IP(91.189.91.14)

/ etc / network / interfaces是

 auto eth0 iface eth0 inet static address 10.1.2.250 netmask 255.255.255.0 network 10.1.2.0 broadcast 10.1.2.255 gateway 10.1.2.254 dns-nameservers 208.67.222.222 208.67.220.220 

/etc/resolv.conf

  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 10.1.2.254 

(我甚至在/etc/resolvconf/resolv.conf.d/tail中没有改变地将nameserver 10.1.2.254注释掉了)

我有另一个12.04盒子使用dhcp到10.1.2.54的networking,没有任何问题。

有什么build议么?

你能够使用其他名称服务器? 正如你所看到的,OpenDNS劫持NXDOMAIN响应可能是非常有问题的。