使用 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 中注释掉了名称服务器 10.1.2.254,但没有任何变化)
我在网络上有另一个 12.04 盒子,使用 dhcp 到 10.1.2.54 没有任何问题。
有什么建议么?
答案1
您可以使用其他名称服务器吗?正如您所见,OpenDNS 对 NXDOMAIN 响应的劫持可能会带来很大问题。