LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 631|回复: 1

DNS 配置问题请高手指点

[复制链接]
发表于 2004-9-5 12:20:41 | 显示全部楼层 |阅读模式
linux 8.0 主机地址172.16.22.4  域名:test.net
/etc/named.conf
options {
        directory "/var/named";

};
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";
};

zone "test.net" IN {
        type master;
        file "test.net";
};

zone "22.16.172.in-addr.arpa" IN {
        type master;
        file "172.16.22";
};
include "/etc/rndc.key";

/var/named/test.net
@ IN SOA test.net  zgq.test.net. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS test.net
IN MX 10 test.test.net
test.net.  IN NS test
test.net. IN A 172.16.22.4
www IN CNAME test.net.

/var/named/172.16.22
@ IN SOA test.net. zgq.test.net. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS test.net.
4 IN PTR test.net.
测试。
ping www.test.net  test.net 都可以通。
[root@test named]# nslookup www.test.net
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:         172.16.22.4
Address:        172.16.22.4#53

www.test.net    canonical name = test.net.
Name:   test.net
Address: 172.16.22.4
正常。
但是反向
[root@test named]# nslookup 172.16.22.4
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:         172.16.22.4
Address:        172.16.22.4#53

** server can't find 4.22.16.172.in-addr.arpa: SERVFAIL

请高手指教哪里的问题。
谢谢了。
 楼主| 发表于 2004-9-5 17:37:17 | 显示全部楼层
自己搞定。OK了。[root@test root]# nslookup 172.16.22.4
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:172.16.22.4
Address:172.16.22.4#53

4.22.16.172.in-addr.arpaname = test.net.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表