Skip to content

ptrgen v0.2

Latest
Compare
Choose a tag to compare
@ritcheydominic ritcheydominic released this 04 Jul 05:54

This is the second release of ptrgen! ptrgen generates PTR records for domain names and both IPv4 and IPv6 addresses/subnets. New with this release is several terminal arguments that you can use to control record generation.

Terminal Usage

Generate a PTR record for a single IP address:
python ptrgen.py 192.0.2.1

Generate PTR records for an IP address range:
python ptrgen.py 198.51.100.0/24

Generate a PTR record with a TTL value:
python ptrgen.py -ttl 3600 203.0.113.0

Generate PTR records for the IPv4/IPv6 addresses mapped by a domain name:
python ptrgen.py example.com

Generate PTR records for only the IPv6 addresses in an object:
python ptrgen.py -no4 example.com

Generate PTR records in given IPv4/IPv6 DNS zones:
python ptrgen.py -z4 2.0.192.in-addr.arpa. -z6 8.b.d.0.1.0.0.2.ip6.arpa. example.com