Chinaunix

标题: 请教外网BIND9 DNS 反向解析的问题 [打印本页]

作者: liang831002    时间: 2008-12-20 23:19
标题: 请教外网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 编辑 ]
作者: liang831002    时间: 2008-12-22 15:15
如何做多IP网段的反向解析了??
作者: fangjy2008    时间: 2008-12-23 18:03
标题: 回复 #1 liang831002 的帖子
外网IP反向解析要找运营商作,自己作的没啥用,除非别人也用你的外网DNS。谁给你IP,你找谁。
作者: llzqq    时间: 2008-12-24 15:47
原帖由 fangjy2008 于 2008-12-23 18:03 发表
外网IP反向解析要找运营商作,自己作的没啥用,除非别人也用你的外网DNS。谁给你IP,你找谁。


正解!
作者: liang831002    时间: 2008-12-25 15:22
谢谢两位.....




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2