[root@email etc]# ls localtim med.caching-nameserver.conf named.rfc1912.zones rndc.key 在这里,我们通过拷贝 named.rfc1912.zones 作为named.conf文件,并在此文件中添加自己的区域。 # cp named.rfc1912.zones named.conf # vi named.conf 如下内容:(我设置了两个域,microtrend.cn及xinry.com)
[root@email etc]# more named.conf // named.rfc1912.zones: // // Provided by Red Hat caching-nameserver package // // ISC BIND named zone configuration for zones recommended by // RFC 1912 section 4.1 : localhost TLDs and address zones // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options {
directory "/var/named";
};
zone "." IN { type hint; file "named.ca"; };
zone "localdomain" IN { type master; file "localdomain.zone"; allow-update { none; }; };
zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; };
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { type master; file "named.ip6.local"; allow-update { none; }; };
zone "255.in-addr.arpa" IN { type master; file "named.broadcast"; allow-update { none; }; };
zone "0.in-addr.arpa" IN { type master; file "named.zero"; allow-update { none; }; }; zone "microtrend.cn" IN { type master; file "microtrend.cn.zone"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master; file "1.168.192.zone"; allow-update { none; }; }; zone "xinry.com" IN { type master; file "xinry.com"; allow-update { none; }; };