|
forward only; forwarders {1.2.3.4; 5.6.7.8; }; |
|
zone"0.168.192.in-addr.arpa" { type master; file "mynetwork.reverse.zone"; }; |
|
zone "mynetwork" { type master; file "mynetwork.forward.zone"; }; |
|
$TTL 86400 @ IN SOA @ root.localhost ( 3 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; ttk ) |
|
ns IN A 10.0.0.1 zeus IN A 10.0.0.2 |
|
NS 10.0.0.1 ns IN A 10.0.0.1 richard IN A 10.0.0.2 laptop IN A 10.0.0.3 |
|
1 IN PTR ns.matrix. 2 IN PTR zeus.matrix. |
|
@ IN NS ns.matrix. 1 IN PTR ns.matrix. 2 IN PTR zeus.matrix. |
|
[root@ns root]# nslookup -sil zeus.matrix Server:                10.0.0.1 Address:               10.0.0.1#53 Name:     zeus.matrix Address: 10.0.0.2 |
|
[root@ns root]# nslookup -sil 10.0.0.2 Server:                10.0.0.1 Address:               10.0.0.1#53 2.0.0.10.in-addr.arpa name = zeus.matrix. |
|
[root@ns root]# nslookup -sil www.redhat.com,br>
Server:                10.0.0.1 Address:               10.0.0.1#53 Non-authoritative answer: Name: www.redhat.com Address: 216.148.218.195 Name: www.redhat.com Address: 216.148.218.197 |