- 论坛徽章:
- 0
|
Linux+bind 能否从Win2k的DNS接收.zone文件
以前测试不成功,修改了配置文件后重启named服务,始终无法从另一个Win的服务器上面得到相关文件。今天仔细查看,发现Win上面的DNS服务的文件是.dns扩展名的。于是重新修改了named.conf文件,重启后仍然没有得到相关文件。用nmap查看53端口已经打开。
- C:\Documents and Settings\lsg>;nslookup www.zzzx.net.cn 192.168.40.9
- DNS request timed out.
- timeout was 2 seconds.
- *** Can't find server name for address 192.168.40.9: Timed out
- Server: UnKnown
- Address: 192.168.40.9
- *** UnKnown can't find www.zzzx.net.cn: Server failed
- C:\Documents and Settings\lsg>;
复制代码
郁闷……
- [root@student etc]# cat named.conf
- // generated by named-bootconf.pl
- options {
- directory "/var/named";
- /*
- * If there is a firewall between you and nameservers you want
- * to talk to, you might need to uncomment the query-source
- * directive below. Previous versions of BIND always asked
- * questions using port 53, but BIND 8.1 uses an unprivileged
- * port by default.
- */
- // query-source address * port 53;
- };
- //
- // a caching only nameserver config
- //
- controls {
- inet 127.0.0.1 allow { localhost; } keys { rndckey; };
- };
- zone "." IN {
- type hint;
- file "named.ca";
- };
- zone "localhost" IN {
- type master;
- file "localhost.zone";
- allow-update { none; };
- };
- zone "0.0.127.in-addr.arpa" IN {
- type master;
- file "named.local";
- allow-update { none; };
- };
- zone "zzzx.net.cn" IN {
- type slave;
- masters { 192.168.1.243; };
- file "zzzx.net.cn.dns";
- };
- zone "0.168.192.in-addr.arpa" {
- type slave;
- masters { 192.168.1.243; };
- file "0.168.192.in-addr.arpa.dns";
- };
- zone "edu-linux.org" IN {
- type slave;
- masters { 192.168.1.243; };
- file "edu-linux.org.dns";
- };
- include "/etc/rndc.key";
- [root@student etc]#
复制代码 |
|