protocol => protocole
This commit is contained in:
parent
4e04cfb8be
commit
3f4703827f
1 changed files with 12 additions and 12 deletions
4
main.py
4
main.py
|
@ -23,7 +23,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}"
|
||||
|
@ -100,7 +100,7 @@ def write_dns_files(api_client):
|
|||
|
||||
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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue