/etc/named.conf¤ÎÃæ¿È
//
// boot file for name server
//
acl allowed-hosts {
192.168.1.0/24; localhost;
};
//
// this name server works only for hosts in the private zone
// and myself.
//
options {
allow-query { allowed-hosts; };
allow-transfer { allowed-hosts; };
query-source port 53
directory "/var/named";
forwarders {
123.45.6.200;
};
};
//
// a caching only nameserver config
//
zone "gakka.utsunomiya-u.ac.jp" {
type slave;
file "/var/named/second/gakka-hosts.bak";
masters {
123.45.6.200;
};
};
//
// a caching only nameserver config
//
zone "6.45.123.in-addr.arpa" {
type slave;
file "/var/named/second/gakka-rev.bak";
masters {
123.45.6.200;
};
};
zone "localhost" {
type master;
file "/var/named/local-host";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/var/named/local-rev";
};
zone "." {
type hint;
file "/var/named/named.ca";
};
//
// private network named "prv"
//
zone "prv" {
type master;
file "/var/named/prv.zone";
allow-query { allowed-hosts; };
};
zone "1.168.192.IN-ADDR.ARPA" {
type master;
file "/var/named/prv.zone.rev";
allow-query { allowed-hosts; };
};