請教外網BIND9 DNS 反向解析的問題
公司自己搭建了兩台外網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 編輯 ]
《解決方案》
如何做多IP網段的反向解析了??
《解決方案》
回復 #1 liang831002 的帖子
外網IP反向解析要找運營商作,自己作的沒啥用,除非別人也用你的外網DNS。誰給你IP,你找誰。
《解決方案》
原帖由 fangjy2008 於 2008-12-23 18:03 發表 http://bbs.chinaunix.net/images/common/back.gif
外網IP反向解析要找運營商作,自己作的沒啥用,除非別人也用你的外網DNS。誰給你IP,你找誰。
正解!
《解決方案》
謝謝兩位.....