protocol => protocole
This commit is contained in:
parent
19466c5f1f
commit
2abba256b2
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -35,7 +35,7 @@ template_originv6 = "@ IN AAAA {ipv6}"
|
||||||
template_ns = "@ IN NS {target}."
|
template_ns = "@ IN NS {target}."
|
||||||
template_mx = "@ IN MX {priority} {target}."
|
template_mx = "@ IN MX {priority} {target}."
|
||||||
template_txt = "{field1} IN TXT {field2}"
|
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_a = "{hostname} IN A {ipv4}"
|
||||||
template_aaaa = "{hostname} IN AAAA {ipv6}"
|
template_aaaa = "{hostname} IN AAAA {ipv6}"
|
||||||
template_cname = "{hostname} IN CNAME {alias}."
|
template_cname = "{hostname} IN CNAME {alias}."
|
||||||
|
@ -155,7 +155,7 @@ def write_dns_file(zone):
|
||||||
srv_records = "\n".join(
|
srv_records = "\n".join(
|
||||||
template_srv.format(
|
template_srv.format(
|
||||||
service=x['service'],
|
service=x['service'],
|
||||||
protocol=x['protocol'],
|
protocole=x['protocole'],
|
||||||
zone=zone_name,
|
zone=zone_name,
|
||||||
ttl=x['ttl'],
|
ttl=x['ttl'],
|
||||||
priority=x['priority'],
|
priority=x['priority'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue