主配置文件:/var/named/chroot/etc/named.conf
========================================================
// Red Hat BIND Configuration Tool
//
// Default initial "Caching .ly" name server configuration
//
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;
};
#zone "." IN {
# type hint;
# file "named.root";
#};
zone "localdomain." IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "jay.com." IN {
type master;
file "jay.com.";
allow-update { none; };
};
zone "3.168.192.in-addr.arpa." IN {
type master;
file "192.168.3.0";
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; };
};
include "/etc/rndc.key";
======================================================
正向区域文件:/var/named/chroot/var/named/jay.com
=======================================================
$TTL 86400
@ IN SOA jay.com root.jay.com (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS jay.com
IN A 192.168.3.162
IN MX 5 mail.jay.com
mail IN A 192.168.3.162
www IN A 192.168.3.166
======================================================
反向区域文件::/var/named/chroot/var/named/192.168.2.0
=======================================================
$TTL 86400
@ IN SOA jay.com. root.jay.com. (
42 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS jay.com.
162 IN PTR jay.com.
162 IN PTR mail.jay.com
166 IN PTR