diff --git a/main.py b/main.py index 08679b9..81506e4 100755 --- a/main.py +++ b/main.py @@ -35,7 +35,7 @@ template_originv6 = "@ IN AAAA {ipv6}" template_ns = "@ IN NS {target}." template_mx = "@ IN MX {priority} {target}." template_txt = "{field1} IN TXT {field2}" -template_srv = "_{service}._{protocol}.{zone} {ttl} IN SRV {priority} {weight} {port} {target}" +template_srv = "_{service}._{protocole}.{zone} {ttl} IN SRV {priority} {weight} {port} {target}" template_a = "{hostname} IN A {ipv4}" template_aaaa = "{hostname} IN AAAA {ipv6}" template_cname = "{hostname} IN CNAME {alias}." @@ -155,7 +155,7 @@ def write_dns_file(zone): srv_records = "\n".join( template_srv.format( service=x['service'], - protocol=x['protocol'], + protocole=x['protocole'], zone=zone_name, ttl=x['ttl'], priority=x['priority'],