請大家幫忙看看我的bind9配置對不對~! 小弟我在ubuntu 上裝了一個bind9,看起來是裝好的,但總感覺哪裡不對,請大家幫忙看看,指點一下~! os:ubuntu 6.10 bind9 ubuntu主機名:ubuntu^^^^^^^^^^^^只有這一台機器哦, /etc/bind/name.conf文件如下: (我去掉了註釋信息,大家能看得清楚一點) include "/etc/bind/named.conf.options"; zone "." { type hint; file "/etc/bind/db.root"; }; zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; zone "donggua0713.com" { ^^^^^^^^^^^^^^^^^^^^^^^^^^^我自己加的正解 type master; file "/etc/bind/donggua0713.com"; }; zone "1.168.192.in-addr.arpa" { ……………………………………我自己加的反解 type master; file "/etc/bind/1.168.arpa"; }; #zone "donggua0713.vicp.net" { ^^^^^^^^^^^^^^^^^^^^^^^^另一個正解,因為不知道怎麼解決反解,註釋掉先 # type master; # file "/etc/bind/donggua0713.vicp.net"; #}; include "/etc/bind/named.conf.local"; ************************************************************************************************************** /etc/bind/donggua0713.com文件如下: ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA donggua0713.com. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; IN NS ubuntu.donggua0713.com. IN MX 10 mail.donggua0713.com. ubuntu IN A 192.168.1.77 www IN A 192.168.1.77 mail IN A 192.168.1.77 ********************************************************************************************************** /etc/bind/1.168.arpa文件如下: ; BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA donggua0713.com. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; IN NS ubuntu.donggua0713.com. IN MX 10 mail.donggua0713.com. 77 IN PTR ubuntu.donggua0713.com. 77 IN PTR www.donggua0713.com. 77 IN PTR mail.donggua0713.com. 現在情況是這樣,我寫完這些文件后,restart,很正常,兩個 ok,然後我跑到另一台winxp機器上去,把它的DNS設置成這台UBUNTU的IP(192.168.1.77),然後再CMD下輸入nslookup,接著set q=a,然後輸入 ubuntu.donggua0713.com和www.donggua0713.com和mail.donggua0713.com都很好,能順利的解析出來,輸入SINA的網址什麼的也很順利, 但我set q=soa,再輸入www.donggua0713.com ubuntu.donggua0713.com mail.donggua0713.com 這個時候,就感覺有點不對了 輸入nslookup顯示如下: Default server:ubuntu.donggua0713.com ^^^^^^^^這裡會在ubuntu,www,mail之間變化選擇一個 Address:192.168.1.77 然後輸入如下: >set q=soa >www.donggua0713.com server: ubuntu.donggua0713.com address: 192.168.1.77 donggua0713.com primary name server = donggua0713.com responsible mail addr = root.localhost serial = 1 refresh = 604800 <7 days> retry = 86400 <1 days> expire = 2419200 <28 days> default TTL = 604800 <7 days> 輸入donggua0713.com顯示如下: >donggua0713.com server: ubuntu.donggua0713.com address: 192.168.1.77 donggua0713.com primary name server = donggua0713.com responsible mail addr = root.localhost serial = 1 refresh = 604800 <7 days> retry = 86400 <1 days> expire = 2419200 <28 days> default TTL = 604800 <7 days> donggua0713.com nameserver = ubuntu.donggua0713.com ubuntu.donggua0713.com internet address = 192.168.1.77 然後我輸入set q=ptr,輸入www.donggua0713.com和donggua0713.com,顯示如下: >www.donggua0713.com server: ubuntu.donggua0713.com address: 192.168.1.77 donggua0713.com primary name server = donggua0713.com responsible mail addr = root.localhost serial = 1 refresh = 604800 <7 days> retry = 86400 <1 days> expire = 2419200 <28 days> default TTL = 604800 <7 days> >donggua0713.com server: ubuntu.donggua0713.com address: 192.168.1.77 donggua0713.com primary name server = donggua0713.com responsible mail addr = root.localhost serial = 1 refresh = 604800 <7 days> retry = 86400 <1 days> expire = 2419200 <28 days> default TTL = 604800 <7 days> 我覺得反解這裡有點問題,但不知道問題出在那裡,希望大家幫我指點一下 [ 本帖最後由 donggua0713 於 2007-1-30 10:23 編輯 ]
[火星人
]
請大家幫忙看看我的bind9配置對不對~! 已經有411 次圍觀
本文地址: http://coctec.com/docs/service/show-post-41609.html