附录:
/etc/named.conf的内容为:
--------------------------------------------
options {
directory “/var/named/” ;};
zone “linux.com”{
type master;
file “linux.com.zone”; };
zone “0.168.192.in-addr.arpa” {
type master;
file “192.168.0.rev”; };
-----------------------------------------------
linux.com.zone的内容为:
-----------------------------------------------
@ IN SOA rhel3.linux.com root.rhel3.linux.com(
2004070701
3H
15M
1W
1D)
IN NS rhel3.linux.com.
rhel3 IN A 192.168.0.10
www IN CNAME rhel3.linux.com.
-----------------------------------------------
192.168.0.rev的内容为
-----------------------------------------------
@ IN SOA rhel3.linux.com root.rhel3.linux.com(
2004070701
3H
15M
1W
1D)
IN NS rhel3.linux.com.
10 IN PTR rhel3.linux.com.
10 IN PTR www.linux.com.
-----------------------------------------------