How to add PTR record for a /16 IP block in BIND using $GENERATE directive?
Posted
by
yegle
on Server Fault
See other posts from Server Fault
or by yegle
Published on 2011-05-31T02:39:26Z
Indexed on
2014/06/03
3:30 UTC
Read the original article
Hit count: 361
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?
© Server Fault or respective owner