- 论坛徽章:
- 0
|
公司自己搭建了两台外网BIND DNS.来实现DNS轮循. 如两台负责解析的DNS如下:
dns1.test.name 10.0.0.1
dns2.test.name 10.0.0.2
name.conf
view "tlc" {
allow-recursion { 192.168.1.20; 10.0.0.1; 10.0.0.2; };
match-clients {
TELECOM;
};
zone "test.com" {
type master;
file "/var/named/data/test.com.telecom.db";
allow-update { 127.0.0.1;};
notify no;
};
zone "2.168.192.in-addr.arpa" IN {
type master;
file "/var/named/data/192.168.2.0.rev";
allow-update { 127.0.0.1;};
notify no;
};
};
view "cnc" {
allow-recursion { 192.168.1.25; 10.0.0.1; 10.0.0.2; };
match-clients {
any;
};
zone "test.com" {
type master;
file "/var/named/data/test.com.cnc.db";
allow-update { 127.0.0.1;};
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "/var/named/data/192.168.1.rev";
allow-update { 127.0.0.1;};
};
};
正向解析现在没有问题,还负责多个域名的解析
$TTL 600
test.com IN SOA dns1.test.name hostmaster.test.name. (
1400000040 ; Serial
6000 ; Refresh
3000 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL;
@ IN NS dns1.test.name.
@ IN NS dns2.test.name.
test.com IN A 192.168.1.10
www IN A 192.168.1.11
smtp IN A 192.168.1.15
blog IN A 192.168.1.16
错误在反项解析:
$ttl 600
1.168.192.in-addr.arpa. IN SOA dns1.test.name. hostmaster.test.name. (
1400000030 ; Serial
6000 ; Refresh
3000 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL;
1.168.192.in-addr.arpa. IN NS dns1.test.name.
1.168.192.in-addr.arpa. IN NS dns1.test.name.
11.1.168.192.in-addr.arpa. IN PTR www.test.com.
15.1.168.192.in-addr.arpa. IN PTR smtp.test.com.
16.1.168.192.in-addr.arpa. IN PTR blog.test.com.
现在反项解析怎么做也解析不出来..
root@bind1.baihui.com/var/named/chroot/var/named/data>nslookup 192.168.1.15
Server: 10.0.0.1
Address: 10.0.0.1#53
** server can't find 15.1.168.192.in-addr.arpa: NXDOMAIN
请教哪位大哥大姐们给点提示.....谢谢,
BIND 9 如何解析多个区域的反向解析???????
[ 本帖最后由 liang831002 于 2008-12-20 23:51 编辑 ] |
|