From a56e9c444cc743586ebdf7447103cf54f61fdaf8 Mon Sep 17 00:00:00 2001 From: Charlie Jacomme Date: Wed, 8 Aug 2018 11:59:08 +0200 Subject: [PATCH] fix aliases --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4831515..08fb84b 100755 --- a/main.py +++ b/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'] )