dnsrev is a script that will generate reverse lookup (PTR) data for all hostnames defined in the given DNS zonefiles. It uses BIND's parser to read zonefiles, so it should support features like $INCLUDE and $GENERATE, and of course it understands IPv6 addresses.