藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 網絡通訊


    

藍森林 http://www.lslnet.com 2006年7月26日 13:28

我想不通……

裝redhat 6.1的時候選擇了dns,配置後,啟動nslookup,得到錯誤:
can't find server name for address 123.xxx.xxx.xxx : No response from server
Default server are not available
可是,我在hosts文件中配置了:
123.xxx.xxx.xxx test.xxx.com test
在resolv.conf文件中配製了:
nameserver 123.xxx.xxx.xxx

請問:大家有什麼好的解決辦法嗎?
謝謝了~~~~~~~~~~



Re: 我想不通……

你可能需要在bind中做好123.xxx.xxx.xxx地址的反向解析。

Heart——>Linux!

Re: 我想不通……

我也做了的。
而且,ping test.xxx.com,可以解析出ip地址。



Re: 我想不通……

能夠ping通test.xxx.com只能表示你能夠通過域名解析出ip地址,而不能證明你可以通過ip地址反向解析出域名。在/etc/hosts文件中寫入的不行,因為nslookup只認域名服務器。

Heart——>Linux!

Re: 我想不通……

我的named.conf是:
...
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};

zone "xxx.com" {
type master;
file "OracleLinux.db";
};

zone "xxx.xxx.123.in-addr.arpa" {
type master;
file "db.123.xxx.xxx";
};

我的db.123.xxx.xxx是:
@ IN SOA test.xxx.com. test.test.xxx.com. (
20010508001 ; Serial
7200 ; Refresh - 2 hours
3600 ; Retry - 1 hour
43200 ; Expire - 12 hours
3600 ) ; Minimum - 1 hour
IN NS test.xxx.com

xxx.xxx.xxx.123.in-addr.arpa. IN PTR test.xxx.com.

不知道設置對了嗎了?





Re: 我想不通……

從你給出的配置內容來看,倒是真沒有什麼問題。或許你還要仔細檢查一下其它方面。

Heart——>Linux!

Re: 我想不通……

如果在resolv.conf中把nameserver 123.xxx.xxx.xxx改為:test.xxx.com,再使用nslookup,得到address 0.0.0.0

那還應該檢查哪些地方了?
ps:可以告訴我,你的oicq號碼嗎?



Re: 我想不通……

address 0.0.0.0表示沒有設置nameserver。因為你使用了test.xxx.com,而這個域名又需要通過域名服務器來解析,所以根本就找不到nameserver。

你可以再仔細檢查你的正向解析文件,雖然你可以ping通test.xxx.com,但是這並不表明正向解析文件一定正確,因為你在/etc/hosts文件中也作了配置。

抱歉,我還沒有oicq號,直接發郵件給我好了,boomer@ccidnet.com

Heart——>Linux!

Re: 我想不通……

xxx.xxx.xxx.123.in-addr.arpa. IN PTR test.xxx.com 應該寫成
xxx IN PTR test.xxx.com
如果你的不是C類那應該在PTR記錄裡把IP補到4段

---------------------
我求知,所以我進步,
我無知,所以我發問
---------------------

Re: 我想不通……

不知道可不可以把你的linux下的dns配置文件發給我,我好比較比較研究研究一下.
謝謝你了~~~~~~~~



Re: 我想不通……

我覺得bsdfan說得有道理,在你這種情況下,應該只需要保留xxx,而不要後面的一長串,你可以試試。

Heart——>Linux!



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com