问题状态: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 modules: [ OK ]
[root@dns ~]# chkconfig iptables off //检查关闭状态为Disabled表明关闭了防火墙
[root@dns ~]# getenforce
Disabled
service iptables sto这条命令在DNS上敲出之后,客户机马上可以正常解析!
最近我也遇到了这个问题,通过关闭防火墙解决了,不知道对你是否有用,你可以试试
我的情况是:
服务器本地可以正方向 进行nslookup操作
2.S端和C端可ping通。
但是无法从客户机进行nslookup操作。
使用以下命令:
service iptables stop
配置客户机的vim /etc/resolv.conf 文件;
将其中的DNS指向DNS服务器的IP。
问题状态: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 modules: [ OK ]
[root@dns ~]# chkconfig iptables off //检查关闭状态为Disabled表明关闭了防火墙
[root@dns ~]# getenforce
Disabled
service iptables sto这条命令在DNS上敲出之后,客户机马上可以正常解析!
这是09年的问题,3个多年头过去了,只有人路过,却没人解答。
今天搞这个,遇到了一模一样的问题。
不知道提问者现在又答案没,能否分享一下。