reverse zone for 192.168.x.y not working but 192.168.100.x does

Michael Kjorling michael at kjorling.com
Thu Mar 7 16:46:19 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

192.168/16 isn't a class B, it's a class C address block. Aside from
that, you've named your RRs wrong. You reverse the four octets of the
IPv4 address and append in-addr.arpa to get the node at which a PTR
record should be available, so you'd need to say (for example):

> $ORIGIN 168.192.in-addr.arpa.
> 1.100 PTR whatever.

This will cuase 192.168.100.1 to reverse-resolve to "whatever.".


Michael Kjörling


On Mar 7 2002 10:24 +0100, r_no at hotmail.com wrote:

> I try to setup a DNS to answer all the 192.168 class B,
> here is my config:
> # LL, FR, ISDN
> zone "168.192.in-addr.arpa" in {
>         type master;
>         file "db.192.168";
> };
>
>
> and here is my db.192.168 (well part of it)
> $TTL 86400      ; 1 day
> @   SOA  darkstar.ln.x.com. postmaster.darkstar.ln.x.com.
> (
>                                 29020207   ; serial
>                                 10800      ; refresh (3 hours)
>                                 3600       ; retry (1 hour)
>                                 604800     ; expire (1 week)
>                                 3600       ; minimum (1 hour)
>                                 )
>                         NS      darkstar.ln.x.com.
>
>
> ;this line was for test purpose
> 100.1   PTR             s0-1-b1
> ; in case this one dosen't work
> 192.168.100.1   PTR             s0-1-b1
> 192.168.100.2   PTR             s2/0-1-v1
> 192.168.100.5   PTR             s0/0-1-z2
> 192.168.100.6   PTR             s2/0-2-v1
> 192.168.100.9   PTR             s0-1-l1
>
> His their a way to make it works or does I have to create a domain for
> every 192.168.x I have (192.168.100, 192.168.110, 192.168.120,
> 192.168.130, 192.168.140, 192.168.150, 192.168.160), I use mostly for
> Leased line, Frame Relay, ISDN, PSTN and tunnel configuration, and I
> don'0t want to have 7 diffrent file, to mutch think to do  !
> Anyone can help ?
>
> Thanks,
>
> Arno

- -- 
Michael Kjörling  --  Programmer/Network administrator  ^..^
Internet: michael at kjorling.com -- FidoNet: 2:204/254.4   \/
PGP: 95f1 074d 336d f8f0 f297 6a5b 2aa3 7bfd 8a70 e33e

``And indeed people sometimes speak of man's "bestial" cruelty, but
this is very unfair and insulting to the beasts: a beast can never be
so cruel as a man, so ingeniously, so artistically cruel.''
(Ivan Karamazov, in Dostoyevsky's 'The Brothers Karamazov')

*** Spammers: see http://michael.kjorling.com/spam ***
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key is at http://michael.kjorling.com/contact/pgp.html

iD8DBQE8h5leKqN7/Ypw4z4RAhHGAKDGY4/o6SkS2rJ25I6O0lFDCa42SQCeIXuN
aSygUHb72+eLEHd2+36d1Zc=
=ZGQk
-----END PGP SIGNATURE-----




More information about the bind-users mailing list