Chinaunix
标题:
centos 5.7 ping域名不通,ip可以,怎么回事啊?
[打印本页]
作者:
quickphp
时间:
2012-01-10 15:00
标题:
centos 5.7 ping域名不通,ip可以,怎么回事啊?
centos 5.7,刚装的系统,ping域名不通,ip可以!
[root@localhost ~]# ll /lib/lib*dns*
-rwxr-xr-x 1 root root 21948 Aug 13 01:48 /lib/libnss_dns-2.5.so
lrwxrwxrwx 1 root root 17 Jan 10 00:09 /lib/libnss_dns.so.2 -> libnss_dns-2.5
[root@localhost ~]# grep hosts /etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns
[root@localhost ~]# vi /etc/resolv.conf
search localdomain
nameserver 202.96.209.5
nameserver 210.22.73.3
我ping GG的dns 8.8.8.8 也不通,请大家帮忙看看啊
作者:
chenyx
时间:
2012-01-10 15:09
防火墙关闭测试下看看,在命令行用nslookup 域名 测试下看看能不能解析
作者:
quickphp
时间:
2012-01-10 15:11
iptables已关闭,selinux已关闭
[root@localhost ~]# nslookup
www.sina.com.cn
;; connection timed out; no servers could be reached
也不行
作者:
chenyx
时间:
2012-01-10 15:20
本帖最后由 chenyx 于 2012-01-10 15:21 编辑
你的内网还有没有别的dns服务器了?如果有,dns指向你内网的测试下
你试试 dig +trace www.sina.com.cn,把结果贴上来
作者:
quickphp
时间:
2012-01-10 15:40
本帖最后由 quickphp 于 2012-01-10 15:54 编辑
这个就不清楚了,我是托管在上海真如机房的,具体他们内部的网络布局我也不清楚,纠结!
[root@localhost ~]# dig
www.sina.com.cn
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>>
www.sina.com.cn
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost ~]# trace
www.sina.com.cn
-bash: trace: command not found
[root@localhost ~]# dig +trace
www.sina.com.cn
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> +trace
www.sina.com.cn
;; global options: printcmd
;; connection timed out; no servers could be reached
作者:
marsaber
时间:
2012-01-10 22:43
IP可以通,域名不通,还是应该跟DNS有关啊。
试试杭州的DNS服务器 202.101.172.35
作者:
yaoxingnihao
时间:
2015-08-12 10:48
回复
2#
chenyx
你好,我的虚拟机用你说的那个命令 能解析域名,但是还是连不了外网。能ping 通其他的在一个网段的机子、宿主机、网关。就是不能ping通外网地址。真的不知道怎么回事了。
作者:
woxizishen
时间:
2015-08-12 14:58
1.一般托管的IDC机房,他们为了保障客户服务器的安全,都会把把相应的端口通过边缘的硬件防火墙或者其他设备给屏蔽的,只开放你需要的服务端口,让他把你托管的那台服务器的DNS的53端口给放行即可。
UDP 53端口主要用于答复DNS客户端的解析请求,放行这个就可以了。
服务器托管在别处就是麻烦。
作者:
free4us
时间:
2015-08-14 12:57
能通网关?
你直接ping 给你的DNS IP地址能不能通哦
作者:
chenyx
时间:
2015-08-16 14:11
那你还是找ISP吧,能通网关,不能通外面,看看是不是ISP有限制
作者:
ruconse
时间:
2015-08-18 13:16
你确定可以ping通DNS服务器的IP?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2