🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Akihiro Kondou Thu, 07 Mar 2002 05:56
クラスCの逆引きについて
#134
Author: Akihiro Kondou
Date: Thu, 07 Mar 2002 05:56
100 lines
5191 bytes
こんどうと申します。
長文で大変申し訳ありません。

クラスCの逆引きの設定で質問があり、御連絡させて頂きました。
JPNICより正規でクラスCを2本を取得し、DNSサーバを立ち上げ、
クラスCの逆引きを設定しようとしているのですが、namedは
起動して、正引きは問題なく出来るのですが、クラスCの逆引き
がうまくいきません。オライリ本とかも見てしべているのですが
なかなかうまくいかずに困っております。

新しくサブドメインを付けて、CNAMEレコードを作成し、各サブドメインでは
PTRレコードだけを管理する方法をとってます。下記のファイルを作成した後に
named.confをファイルを修正して、namedを起動するのですが、

Mar  7 14:35:35 dns named[27537]: zone 0.168.192.in-addr.arpa/IN: has no NS records

ってなメッセージが出て、192.168.0.10などの逆引きも出来ない状態です。

言葉足らずかもしれませんが、解決方法やヒント等を教えて頂けないでしょうか。
説明が足らない点がありましたらご指摘お願いします。

環境
OS:	RedHat 7.2J
DNS:	bind-9.2.0

例)
192.168.0.0/23

DNS(プライマリ)		192.168.0.2
DNS2(セカンダリ)	192.168.0.3

TEST Server
test1.hogehoge.com	192.168.0.10

用意した設定ファイル(中の内容は一部省いています)
0.168.192.in-addr.arpa
--
$TTL    86400
@               IN      SOA     dns.hogehoge.com. postmaster.hogehoge.com. (
                                200203074       ; Serial (YMDN N: refresh number)
                                3600            ; Refresh (1 hour)
                                900             ; Retry (15 minutes)
                                604800          ; Expire (1 week)
                                3600 )          ; Minimum (TTL data cache time)

2A.0.168.192.in-addr.arpa.    IN      NS      dns.hogehoge.com.
10.0.168.192.in-addr.arpa.    IN      CNAME   10.2A.0.168.192.in-addr.arpa.
--

hogehoge.com.zone
--
$TTL    86400
@               IN SOA  dns.hogehoge.com. postmaster.hogehoge.com. (
                                200203071       ; Serial (YMDN N: refresh number)
                                3600            ; Refresh (1 hour)
                                900             ; Retry (15 minutes)
                                604800          ; Expire (1 week)
                                3600 )          ; minimum (TTL data cache time)

                IN      NS      dns.hogehoge.com.
;
dns             IN      A       192.168.0.2
                IN      MX      50      dns.hogehoge.com.
;
test1           IN      A       192.168.0.10
                IN      MX      50      test1.hogehoge.com.
--

hogehgoe.com.rev
--
$TTL    86400
$ORIGIN 2A.0.168.192.in-addr.arpa.
@               IN      SOA     dns.hogehoge.com. postmaster.hogehoge.com. (
                                200203071       ; Serial (YMDN N: refresh number)
                                3600            ; Refresh (1 hour)
                                900             ; Retry (15 minutes)
                                604800          ; Expire (1 week)
                                3600 )          ; Minimum (TTL data cache time)

                IN      NS      dns.hogehoge.com.
2               IN      PTR     dns.hogehoge.com.
10              IN      PTR     test1.hogehoge.com.
--

named.conf
--
zone "0.168.192.in-addr.arpa" {
        type master;
        file "0.168.192.in-addr.arpa";
};

zone "hogehoge.com" {
        type master;
        file "hogehoge.com.zone";
};

zone "2A.0.168.192.in-addr.arpa" {
        type master;
        file "hogehoge.com.rev";
};
Re: クラスCの逆引きについて
#135
Author: Keisuke Takayama
Date: Thu, 07 Mar 2002 09:44
25 lines
1943 bytes
>>>>> In article <86g03cj4yo.wl@zero.lsv.ne.jp>, 
        Akihiro Kondou (近藤明浩) <kondou@glay.ne.jp> writes:

AK> Mar  7 14:35:35 dns named[27537]: zone 0.168.192.in-addr.arpa/IN: has no NS records

ですから

AK> 0.168.192.in-addr.arpa

に そのゾーン自身の NS レコードとして

AK> $TTL    86400
AK> @               IN      SOA     dns.hogehoge.com. postmaster.hogehoge.com. (
(略)

0.168.192.in-addr.arpa.    IN      NS      dns.hogehoge.com.

が必要なのではないでしょうか.
-- 
Keisuke TAKAYAMA <taka@cyber-magic.org> <taka@magic.uinet.or.jp>
不許 全文引用 / 記述内容完全無保証

☆「青少年有害社会環境対策基本法」に関する反対表明
<URL:http://www.shooting-star.ne.jp/~zine/ROSF/column/seinen/seinen000.htm>
--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads