DNS 配置问题请高手指点

由 lylzgq 在 09-05-2004 12:20 发表:

DNS 配置问题请高手指点

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

Ad

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus