我最近从一家公司获得了一台服务器,用于配置新的邮件服务,但现在我遇到了一个惊人的问题!“ping google.com”不起作用并返回“ping:未知主机 google.com”,但 ping 8.8.8.8 工作正常。我已经检查了 resolv.conf、iptables!但什么都没变。我的内容如下:
#cat resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
#iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
nslookup google.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
# dig @8.8.8.8 google.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
# dig @8.8.8.8 google.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
# dig @2001:4860:4860::8888 google.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> @2001:4860:4860::8888 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
但现在我把它冲洗干净了。谢谢
答案1
某些因素(例如:外部防火墙)阻止了 DNS 请求。请联系您的网络管理员并说明情况;您可能必须使用内部 DNS。