淘先锋技术网

首页 1 2 3 4 5 6 7

5.域mydomain.org的反向解析文件/var/named/192.168.1.zone$ORIGIN .

$TTL 86400   ; 1 day

1.168.192.in-addr.arpa IN SOA mydomain.org. root.mail.mydomain.org. (

20070301  ; serial

3600    ; refresh (1 hour)

900    ; retry (15 minutes)

604800   ; expire (1 week)

86400   ; minimum (1 day)

)

NS   ns.mydomain.org.

$ORIGIN 1.168.192.in-addr.arpa.

100           PTR   mail.mydomain.org.

7            PTR   marion.org.

PTR   ns.mydomain.org.

四:测试结果

1.主机A:

#nslookup

> set type=NS

> market.myzone.org

Server:     127.0.0.1

Address:    127.0.0.1#53

Non-authoritative answer:

market.myzone.org    nameserver = ns.market.myzone.org.

Authoritative answers can be found from:

ns.market.myzone.org  internet address = 192.168.10.6

> myzone.org

Server:     127.0.0.1

Address:    127.0.0.1#53

myzone.org   nameserver = ns.myzone.org.

> mydomain.org

Server:     127.0.0.1

Address:    127.0.0.1#53

mydomain.org  nameserver = ns.mydomain.org.

>

2.主机B:

#nslookup

> set type=NS

> mydomain.org

Server:     127.0.0.1

Address:    127.0.0.1#53

mydomain.org  nameserver = ns.mydomain.org.

> myzone.org

Server:     127.0.0.1

Address:    127.0.0.1#53

Non-authoritative answer:

myzone.org   nameserver = ns.myzone.org.

Authoritative answers can be found from:

ns.myzone.org  internet address = 192.168.10.7

> market.myzone.org

Server:     127.0.0.1

Address:    127.0.0.1#53

market.myzone.org    nameserver = ns.market.myzone.org.