From ef364d16624ead0095d050854809cef566771bd6 Mon Sep 17 00:00:00 2001 From: Otthorn Date: Sun, 4 Apr 2021 20:46:12 +0200 Subject: [PATCH] :pencil2: fix typos --- main.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 9cbd87d..f4982eb 100644 --- a/main.py +++ b/main.py @@ -33,7 +33,7 @@ def format_mname(name: str): Format a zone name given by the re2o API to a mname dnspython object. Given a a name of the format `.zone.domain.tld` output the - `.zone.domain.tld.`, formatted accordingly to the RFC 1035. + `zone.domain.tld.`, formatted accordingly to the RFC 1035. Return a `dns.name.name` object. """ @@ -58,7 +58,9 @@ HANDLERS = { "aaaa_records": aaaa_records_handler, } -def soa_hanlder((zone, records): +def soa_handler(zone, records): + """Handler for SOA record""" + soa = zone['soa'] records['@'].append( @@ -131,7 +133,7 @@ def sshfp_record_handler(zone, records): records[record["hostname"]].append( dns.rdtype.ANY.SSHFP.SSHFP( dns.rdataclass.IN, - dns.rdatatype.AAAA, + dns.rdatatype.SSHFP, algorithm, fp_type, fingerprint @@ -143,12 +145,12 @@ def txt_records_handler(zone, records): for record in zone["txt_records"]: - zone_name = record["field1"] + name = record["field1"] - records[zone_name].append( + records[name].append( dns.rdtypes.ANY.TXT.TXT( dns.rdataclass.IN, - dns.rdatatype.AAAA, + dns.rdatatype.TXT, record["field2"] )