maluyao 撰寫於文章 <8e9nru$k2c2@imsp212.netvigator.com>...
>我用RedHat Linux 6.0 + Bind8.2在LAN(全部是192.168.0.x )內架一個Primary
DNS,
>現在正反解析都可以.同時沒設Cache DNS.但發現找不存在的主機時會出現問題
>
>例如:
>#nslookup
>>st01.my.com ; OK,解析得到,設了這部主機的IP
>>st01
;OK
>
>>192.168.03 ;OK 存在
>
>>abcd.my.com ;返回結果告訴我不存在這部主機,
>
OK 确實不存在
>
>>abcd
;這樣就要好像死在哪里了,有時按CTL +C都不行,要先強行
>
;STOP DNS 服務.
如果您連續兩次輸入沒有回應﹐且第一次也用 CTL+C
結束的話﹐就有此狀況了。
>
>>202.103.110.8 ;又死在這里了
>:
>請問哪里出了問題?
如果您在 /etc/reslov.conf 設定了 search domain 的話﹐
nslookup 在預設 domain 找不到記錄的話﹐會轉向
search domain ﹐如果還是不行﹐會向 root 查直至 time out。
您只輸入一個 主機名稱﹐dns 不是死掉﹐而是在等 time out
而已。
>
>/etc/named.conf 如下:
>
>options {
> directory "/var/named";
> // query-source address * port 53;
>};
>zone "0.0.127.in-addr.arpa" {
> type master;
> file "named.local";
>};
>zone "my.com" {
> notify no;
> type master;
> file "my.local";
>};
>zone "0.168.192.in-addr.arpa" {
> notify no;
> type master;
> file "my.arpa";
>};
>
>請問這句 notify no;是什么意思?
>
這應該是對 slave 和其它 NS 主機而言吧﹖
DNS-HOWTO 裡面第 4 章有略略提過﹕
4.4 Words of caution
There are some things I should add here. The IP numbers used in the examples
above are taken from one of the blocks of 'private nets', i.e., they are not
allowed to be used publicly on the internet. So they are safe to use in an
example in a HOWTO. The second thing is the notify no; line. It tells named
not to notify its secondary (slave) servers when it has gotten a update to
one of its zone files. In bind-8 the named can notify the other servers
listed in NS records in the zone file when a zone is updated. This is handy
for ordinary use, but for private experiments with zones this feature should
be off, we don't want the experiment to pollute the Internet do we?
And, of course, this domain is highly bogus, and so are all the addresses in
it.
也就是﹕當 DNS 記錄更新之後﹐它不會主動向 slave 和 NS
記錄指定的其它 DNS 公
告。