Hi Bazy On Tue, Aug 19, 2014 at 08:12:58AM -0400, Bazy V wrote: > so I set up the following in my reverse file for ns2.sub.test.com domain > ----------------------- > $ORIGIN 20.172.IN-ADDR.ARPA. > > NS ns1.test.com > 0.220/24 NS ns2.sub.test.com > 43.222 IN PTR ns1.test.com. > 97.201 IN PTR dev1.test.com.
The "220/24" isn't treated as a netmask for automatic expansion. It is used exactly. The only thing that generates records is the $GENERATE directive, but even it doesn't understand "220/24" as something for expansion. As another poster pointed out, you don't need to delegate a /24 network using classless delegation, but if you want to delegate a set of addresses, say 172.20.200.0-172.20.200.63, you'd use something like this: (a) In 20.172.IN-ADDR.ARPA. zone: 0-63.220 NS ns-other.example.com. $GENERATE 0-63 $.220 CNAME $.0-63.220 # which should generate: # 0.220 CNAME 0.0-63.220.20.172.IN-ADDR.ARPA. # 1.220 CNAME 1.0-63.220.20.172.IN-ADDR.ARPA. # 2.220 CNAME 2.0-63.220.20.172.IN-ADDR.ARPA. # ... # 63.220 CNAME 63.0-63.220.20.172.IN-ADDR.ARPA. (b) on ns-other.example.com, in 0-63.220.20.172.IN-ADDR.ARPA. zone: 0 PTR zero.example.com. 1 PTR one.example.com. # etc. > . > . > $ORIGIN 220.20.172.IN-ADDR.ARPA. > $GENERATE 1-255 $ CNAME $.220/24 > --------------------------------------- > > When I do a named-checkzone and out put it , it seems to have written the > right records like > > 42.220.20.172.IN-ADDR.ARPA. TTL IN CNAME > 42.220/24.220.20.172.IN-ADDR.ARPA. In your config in zone 20.172.IN-ADDR.ARPA., there are no delegations for 220/24.220.20.172.IN-ADDR.ARPA. Mukund
pgp9kaEHA3Ps0.pgp
Description: PGP signature
_______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users