Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1 view
Skip to first unread message

r_...@hotmail.com

unread,
Mar 7, 2002, 11:40:22 AM3/7/02
to

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 Kjorling

unread,
Mar 7, 2002, 11:47:36 AM3/7/02
to

-----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

- --
Michael Kjörling -- Programmer/Network administrator ^..^
Internet: mic...@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-----

Barry Margolin

unread,
Mar 7, 2002, 11:54:58 AM3/7/02
to

This should be:

1.100 PTR ...
2.100 PTR ...

or:

1.100.168.192.in-addr.arpa. PTR ...
2.100.168.192.in-addr.arpa. PTR ...

Also, you need to put fully-qualified hostnames.

>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 ?

There's no problem with putting it all in the same zone, but you have to
get the syntax right in the first place.

--
Barry Margolin, bar...@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

Nate Campi

unread,
Mar 7, 2002, 12:24:34 PM3/7/02
to

On Thu, Mar 07, 2002 at 04:51:22PM +0000, Barry Margolin wrote:
> In article <a6855m$q...@pub3.rc.vix.com>, <r_...@hotmail.com> wrote:
> >
> >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.

Here's another one nobody has pointed out yet:

The parens tell BIND to ignore newlines in the RR, but you have a
newline *then* the rest of the SOA. You'll need to fix that as well
before BIND will load your zone file. Make it:

@ SOA darkstar.ln.x.com. postmaster.darkstar.ln.x.com. (
29020207 ; serial

etc...
--
Nate

The only way to convince some people that HTML is about content, not
style is with a <PLANK>2x4</PLANK>.

(I fixed this quote Danny, and sent the changes to my upstream quote
provider ;)

Barry Margolin

unread,
Mar 7, 2002, 1:23:04 PM3/7/02
to
In article <a687oi$r...@pub3.rc.vix.com>, Nate Campi <na...@campin.net> wrote:
>
>On Thu, Mar 07, 2002 at 04:51:22PM +0000, Barry Margolin wrote:
>> In article <a6855m$q...@pub3.rc.vix.com>, <r_...@hotmail.com> wrote:
>> >
>> >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.
>
>Here's another one nobody has pointed out yet:
>
> @ SOA darkstar.ln.x.com. postmaster.darkstar.ln.x.com.
> (
>
>The parens tell BIND to ignore newlines in the RR, but you have a
>newline *then* the rest of the SOA. You'll need to fix that as well
>before BIND will load your zone file. Make it:

I'll wager any amount that it's on the correct line in the actual zone
file, and was wrapped by the news posting software. This particular
artifact happens all the time in this newsgroup.

r_...@hotmail.com

unread,
Mar 8, 2002, 3:17:59 AM3/8/02
to

Hmm, damn it !
You right. thanks it works fine.

Regards,

Arno

0 new messages