請教一個關於bind9解析外網的問題
我現在debian做好了dns伺服器;
;BIND date file for local loopback interface
;
$TTL 604800
$ORIGIN creasian.com.
@ IN SOA creasian.com. root.creasian.com. (
2006080401 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800) ; Negative Cache TTL
;
IN NS ns
IN MX 0 mail.creasian.com.
@ IN A 192.168.10.108
ns IN A 192.168.10.108
www IN A 192.168.10.108
webserver IN CNAME www
mail IN A 192.168.10.108
ftp IN A 192.168.10.108
www.aaa.cn IN A xxx.xxx.xxx.xxx 這是我的正向解析文件
我現在的問題www.aaa.cn這是一個我們公司公網上一伺服器不是公司內部的我想把www.aaa.cn和對應的IP添加到正向和反向解析里的文件里但是我現在只能正向可以解析成功反向解析失敗
以下是我的反向解析文件
;BIND reverse date file for local loopback interface
;
$TTL 604800
@ IN SOA creaian.com. root.creasian.com. (
2006080401 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800) ; Negative Cache TTL
;
@ IN NS creasian.com.
108 IN PTR mail.creaian.com.
108 IN PTR www.creasian.com.
108 IN PTR ns.creasian.com.
108 IN PTR ftp.creasian.com.
xxx.xxx.xxx.xxx IN PTR www.aaa.cn.
我用nslookup
測試的結果
~# nslookup
> mail.ux168.cn
Server: 192.168.10.108
Address: 192.168.10.108#53
Non-authoritative answer:
Name: www.aaa.cn
Address: xxx.xxx.xxx.xxx
> xxx.xxx.xxx.xxx
Server: 192.168.10.108
Address: 192.168.10.108#53
** server can't find xxx.xxx.xxx.xxx.in-addr.arpa: NXDOMAIN
> 192.168.10.108
Server: 192.168.10.108
Address: 192.168.10.108#53
108.10.168.192.in-addr.arpa name = ns.creasian.com.
108.10.168.192.in-addr.arpa name = ftp.creasian.com.
108.10.168.192.in-addr.arpa name = www.creasian.com.
108.10.168.192.in-addr.arpa name = mail.creaian.com.
>
內部的可以反解和正解都沒問題就是這個公網的IP不能反解析請教一下各位反向區域的文件要如何寫?
難到要在named.conf里的添加一個xxx.xxx.xxx.xxx.in-addr.arpa反解文件
[ 本帖最後由 ^日出東方^ 於 2007-5-14 11:02 編輯 ]
《解決方案》
沒人幫我看下嗎?
《解決方案》
回復 2樓 ^日出東方^ 的帖子
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA dns1.dodo.com. hostmaster.dodo.com (
20070316 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns1.dodo.com.
@ IN NS dns2.dodo.com.
1 IN PTR core-gw1.network.tigolao.com.
2.184.144.202.in-addr.arpa. IN PTR transit-2.network.dodo.com
《解決方案》
回復 2樓 ^日出東方^ 的帖子
這個是反解析文件的格式,你可以參考下,那反解析文件的命名如下
db.184.144.202
《解決方案》
回復 2樓 ^日出東方^ 的帖子
忘了把network.tigolao.com 改成network.dodo.com
《解決方案》
回復 5樓 dns30 的帖子
謝謝你的回復但是我有點不明白你的寫的怎麼是2.184.144.202.in-addr.arpa. IN PTR transit-2.network.dodo.com能不能說的詳細點
《解決方案》
原帖由 dns30 於 2007-5-15 12:55 發表
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA dns1.dodo.com. hostmaster.dodo.com (
20070316 ; Serial
...
請問一下你這個是局域的DNS伺服器還是公網上的