fix aliases
This commit is contained in:
parent
e007719926
commit
a56e9c444c
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -29,7 +29,7 @@ template_txt = "{field1} IN TXT {field2}"
|
|||
template_srv = "_{service}._{protocol}.{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}"
|
||||
template_cname = "{hostname} IN CNAME {alias}."
|
||||
template_ptr = "{target} IN PTR {hostname}."
|
||||
|
||||
template_zone = ("$TTL 2D\n"
|
||||
|
@ -138,7 +138,7 @@ def write_dns_files(api_client):
|
|||
|
||||
cname_records = "\n".join(
|
||||
template_cname.format(hostname=x['hostname'],
|
||||
alias=x['alias'],extension=x['extension'])
|
||||
alias=x['alias'])
|
||||
for x in zone['cname_records']
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue