[root@dns named]# more /var/named/chroot/etc/named.conf
// Default named.conf generated by install of bind-9.2.4-16.EL4
options {
directory "/var/named/";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
//allow-query {218.28.20.128/27; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "zzvcom.com" IN {
type master;
file "zzvcom.com.zone";
allow-update { none; };
};
zone "104.168.192.in-addr.arpa" IN {
type master;
file "104.168.192.in-addr.arpa.zone";
allow-update { none; };
};
include "/etc/rndc.key";
[root@dns named]# more zzvcom.com.zone
$TTL 86400
@ IN SOA dns.zzvcom.com. root.zzvcom.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS dns.zzvcom.com.
dns IN A 218.28.20.152
mail IN A 218.28.20.152
@ IN MX 5 dns.zzvcom.com.
www IN A 218.28.20.152
vod IN A 192.168.104.61
cds1 IN A 192.168.104.202
sar IN A 192.168.104.19
[root@dns named]# more 104.168.192.in-addr.arpa.zone
$TTL 86400
@ IN SOA dns.zzvcom.com. root.zzvcom.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS dns.zzvcom.com
mail IN PTR dns.zzvcom.com
@ IN MX 5 dns.zzvcom.com
www IN PTR dns.zzvcom.com
61 IN PTR vod.zzvcom.com.
202 IN PTR cds1.zzvcom.com.
19 IN PTR sar.zzvcom.com.
[root@dns named]# more localhost.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::
[root@dns named]# more named.local
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost
阅读(1526) | 评论(0) | 转发(0) |