How to add PTR record for a /16 IP block in BIND using $GENERATE directive?
- by yegle
I'm trying to reverse map a block of IP using PTR record to some special name so their usage can be easily reflected by a simple nslookup.
For example, here's a nslookup result:
# nslookup 172.17.201.101
Server: 10.253.33.1
Address: 10.253.33.1#53
101.201.17.172.in-addr.arpa name = for.internal.use.only.
And I learned that I can add PTR record for a /24 block by using $GENERATE directive
$GENERATE 0-254 $.201.17.172 PTR for.internal.use.only.
So here's the question:
Am I doing right exposing infomation of IP address by adding PTR record? Any better idea?
If the question above is YES, then how to add PTR record for a /16 IP range? I know I can write 255 lines of $GENTERATE directive but any better solution?