diff --git a/pdns-genrev.py b/pdns-genrev.py index 4f0c5e7..899b773 100755 --- a/pdns-genrev.py +++ b/pdns-genrev.py @@ -45,7 +45,9 @@ def _get(path): def _iterate_zone(zone, types, only_records=False): result = {} records = [] - this_zone = _get(f'zones/{zone}') + + escapedzone = requests.utils.quote(zone, safe='') + this_zone = _get(f'zones/{escapedzone}') for rrset in this_zone['rrsets']: if rrset['type'] in types: