配置文件所放的位置:
named.conf /var/named/chroot/etc
named.ca /var/named/chroot/var/named
cybend.com.zone /var/named/chroot/var/named
named.conf 配置文件
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "cybend.com" IN {
type master;
file "cybend.com.zone";
allow-update {none; };
};
cybend.com.zone配置文件
$ttl 38400
yolady.com. IN SOA dns.cybend.com. admin.cybend.com. (
2008032001
10800
3600
604800
38400 )
cybend.com. IN NS ctc.cybend.com.
cybend.com. IN NS cnc.cybend.com.
cybend.com. IN A 59.37.14.162
cybend.com. IN A 58.251.137.3
www IN A 59.37.14.236
www IN A 58.251.137.21
ctc IN A 59.37.14.162
cnc IN A 58.251.137.3