用有局域网中:
named.conf的配置:
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};
#zone "." {
# type hint;
# file "/etc/named.ca";
# };
zone "test.com" IN {
type master;
file "/var/named/local.zone";
allow-update {none;};
};
zone "20.16.172.in-addr.arpa" IN {
type master;
file "/var/named/named.local";
allow-update { none; };
};
local.zone的配置:
$TTL 86400
@ IN SOA test.com. root.test.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS test.com.
IN A 172.16.20.10
IN MX 5 mail.test.com.
www IN A 172.16.20.10
mail IN A 172.16.20.10
named.local的配置:
$TTL 86400
@ IN SOA test.com. root.test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS test.com.
10 IN PTR .
10 IN PTR mail.test.com.
阅读(716) | 评论(0) | 转发(0) |