主从服务的配置
23节点:
1.检测文件名是否正确
[root@mail ~]# cd /var/named
[root@mail named]# named-checkconf /etc/named
2.编辑配置文件
[root@mail named]# vi /etc/named.rfc1912.zones
// 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
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "localhost.localdomain" IN {
type master;
file "named.localhost";
allow-update {
none; };
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update {
none; };
};
zone "1.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.loopback";
allow-update {
none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update {
none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update {
none; };
};