bind问题,server成功,客户端无法连dns server
环境:Linux PC IP:192.168.0.6 Windows PC IP:192.168.0.7
Linux PC:配置bind9, www.penny.com 192.168.0.6
配置完成后,service named start [OK]
#host named www.penny.com
www.penny.com has address 192.168.0.6
#host 192.168.0.6
6.0.168.192.in-addr.arpa domain name pointer www.penny.com
配置Windows PC dns:192.168.0.6
C:>nslookup
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.0.6: Timed out
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.0.6
> www.penny.com
Server: UnKnown
Address: 192.168.0.6
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
学到了
这个还用问,呵呵
#service iptables stop 之后,解决了问题,客户端可以通过这个DNS解析www.penny.com和192.168.0.6
十分感谢楼上的朋友!!
ps:是否由于iptables关掉了DNS?如果我在iptables上打开dns是否同样可以?
service iptables stop 之后再在Windows 上试试.
[root@linuxhome etc]# nslookup www.penny.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.0.6
Address: 192.168.0.6#53
Name: www.penny.com
Address: 192.168.0.6
[root@linuxhome etc]# nslookup 192.168.0.6
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.0.6
Address: 192.168.0.6#53
6.0.168.192.in-addr.arpa name = www.penny.com.
建议楼主把服务器端作为客户端作一下本地的nslookup解析
看一下,解析情况
[ 本帖最后由 qmailer 于 2006-2-28 18:14 编辑 ]
有没有人知道阿,谢谢了!!