Linux下DNS无法解析怎么办?

发布网友

我来回答

1个回答

热心网友

问题状态:DNS可以正常解析客户机,但是客户机不能做解析,解析时出现如下错误:
[root@node1]#
nslookup
node2
;;
connection
timed
out;
trying
next
origin

;;
connection
timed
out;
no
servers
could
be
reached
关闭防火墙是正解!!!
[root@dns
~]#
getenforce
//DNS服务器上检测防火墙状态
Enforcing
//显示结果
[root@dns
~]#
service
iptables
stop
iptables:
Setting
chains
to
policy
ACCEPT:
filter
[
OK
]
iptables:
Flushing
firewall
rules:
[
OK
]
iptables:
Unloading
moles:
[
OK
]
[root@dns
~]#
chkconfig
iptables
off
//检查关闭状态为Disabled表明关闭了防火墙
[root@dns
~]#
getenforce
Disabled
service
iptables
sto这条命令在DNS上敲出之后,客户机马上可以正常解析!

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com