Compare commits

..

No commits in common. "master" and "v0.2" have entirely different histories.
master ... v0.2

2 changed files with 1 additions and 9 deletions

View File

@ -1,13 +1,7 @@
# pdns-genrev
Tool to generate PTR records in reverse zones based off A/AAAA records in forward zones.
## Configuration
Requires the following environment variables to be set:
`GENREV_KEY` - the API key defined in the PowerDNS configuration
`GENREV_URL` - URL to the PowerDNS webserver, without a path (for example `http://[::1]:8081`)
`GENREV_ZONES` - comma separated list of forward zones to scan

View File

@ -45,9 +45,7 @@ def _get(path):
def _iterate_zone(zone, types, only_records=False):
result = {}
records = []
escapedzone = requests.utils.quote(zone, safe='')
this_zone = _get(f'zones/{escapedzone}')
this_zone = _get(f'zones/{zone}')
for rrset in this_zone['rrsets']:
if rrset['type'] in types: