- 论坛徽章:
- 0
|
主DNS:155.155.5.245
辅域dns:155.155.5.246
域名:test.com
bind 版本9.3.4
两台server的IPTABLES都已经关掉了。
主域named.conf
options {
directory "/var/named";
};
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";
};
zone "test.com" IN {
type master;
file "test.com.dns";
allow-update { any; };
allow-transfer { 155.155.5.246; };
notify yes;
# also-notify { 155.155.5.246; };
};
zone "5.155.155.in-addr.arpa" IN {
type master;
file "test.com.rev";
allow-update { any; };
allow-transfer { 155.155.5.246; };
notify yes;
also-notify { 155.155.5.246 ; };
};
include "/etc/rndc.key";
辅域named.conf
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};
zone "test.com" IN {
type slave;
file "slaves/test.com.dns";
allow-update { any; };
masters { 155.155.5.245; };
};
zone "5.155.155.in-addr.arpa" IN {
type slave;
file "slaves/test.com.rev";
allow-update { any; };
masters { 155.155.5.245; };
};
include "/etc/rndc.key";
主域:test.com.dns,正向解析
$TTL 86400
$ORIGIN test.com.
@ IN SOA test.com. root.test.com. (
48 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS test.com.
IN A 155.155.5.245
dns1 IN A 155.155.5.245
dns2 IN A 155.155.5.246
www IN A 155.155.5.245
主域的test.com.rev 反向解析
$TTL 86400
@ IN SOA test.com. root.test.com. (
48 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS test.com.
245 IN PTR dns1.test.com.
245 IN PTR www.test.com.
246 IN PTR dns2.test.com.
辅域的正反向解析我没有写,看以往的帖子是不用写,自己覆盖到/var/named/chroot/var/named/slaves目录下。我service named restart还是无法将主域的配置文件给复制过来。。
麻烦大侠们帮个忙。。谢谢
[ 本帖最后由 yql911 于 2009-7-20 17:44 编辑 ] |
|