why does that configure make errors?

Mark_Andrews at isc.org Mark_Andrews at isc.org
Sun Jul 7 21:42:45 UTC 2002


> 
> Mark_Andrews at isc.org wrote in message news:<ag62jj$26r5$1 at isrv4.isc.org>...
> > > 
> > > I want set some ip reverse record for some ip address Class B
> > > so I make configuration 
> > > on the primary server like:
> > > 1.IN the file named.conf
> > > 
> > > zone "0.B.A.in-addr.arpa" in {
> > >         type master;
> > >         file "A.B.rev";
> > > };
> > > zone "1.B.A.in-addr.arpa" in {
> > >         type master;
> > >         file "A.B.rev";
> > > };
> > > 2.IN the file A.B.rev
> > > .............
> > >       IN NS ns.a.com.
> > >       IN NS dns.a.com.
> > > $ORIGIN 0.B.A.IN-ADDR.ARPA.
> > > $GENERATE 1-254   $ PTR   a$.a.com.
> > > 
> > > $ORIGIN 1.B.A.IN-ADDR.ARPA.
> > > $GENERATE 1-254   $ PTR   b$.a.com.
> > > 
> > > on the secondary:
> > > 1.in the file named.conf
> > > ......
> > > zone "1.B.A.in-addr.arpa" in {
> > >         type slave;
> > >         file "A.B.rev";
> > >         masters { W.X.Y.Z; };
> > > };
> > >  zone "2.B.A.in-addr.arpa" in {
> > >         type slave;
> > >         file "A.B.rev";
> > >         masters { W.X.Y.Z; };
> > > };
> > > .........
> > > but I encounter some errors
> > > on the primary:
> > > master/A.B.rev:15: $GENERATE LHS out of zone (ignored)
> > > ...
> > > master zone "0.B.A.in-addr.arpa" (IN) loaded (serial 2002070402)
> > > 
> > > on the slave:
> > > slave/A.B.rev:6: SOA for "1.B.A.in-addr.arpa" not at zone top
> > > "0.B.A.in-addr.arpa"
> > > ...
> > > slave/A.B.rev:7: data "1.B.A.in-addr.arpa" outside zone
> > > "0.B.A.in-addr.arpa" (ignored)
> > > ...
> > > Zone "0.B.A.in-addr.arpa" (file slave/A.B.rev): no NS RRs found at
> > > zone top
> > > slave zone "0.B.A.in-addr.arpa" (IN) rejected due to errors (serial
> > > 2002070402)
> > > 
> > > so the result is that I can find ip reverse on the primary server
> > > like A.B.0.1<==>a1.a.com
> > > but not on secondary?
> > > 
> > > so what is the correct configuration?
> > > 
> > 	Do each zone in a seperate file if you want seperate zones.
> > 
> > A.B.0.rev:
> > $TTL <value>
> > @	SOA ..
> > 	NS ..
> > $GENERATE 1-254   $ PTR   a$.a.com.
> > 
> > A.B.1.rev:
> > $TTL <value>
> > @	SOA ..
> > 	NS ..
> > $GENERATE 1-254   $ PTR   b$.a.com.
> > 
> > 	If you want it to be in one file the the zone need to be
> > 	B.A.IN-ADDR.ARPA.
> > 
> > zone "B.A.IN-ADDR.ARPA" {
> > 	type master;
> > 	file "A.B.rev";
> > };
> > 
> > 	Mark
> 
> Thanks.
> can you tell me if the zone file like above of A.B.rev is correct?
> i want to set with B.A.in-addr.arpa.
> 
	What I've seen of it looks correct.
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list