diff --git a/main.py b/main.py index 8824b9d..4831515 100755 --- a/main.py +++ b/main.py @@ -23,14 +23,14 @@ template_soa = ("$ORIGIN {zone}.\n" ")") template_originv4 = "@ IN A {ipv4}" template_originv6 = "@ IN AAAA {ipv6}" -template_ns = "@ IN NS {target}" -template_mx = "@ IN MX {priority} {target}" +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_a = "{hostname} IN A {ipv4}" template_aaaa = "{hostname} IN AAAA {ipv6}" template_cname = "{hostname} IN CNAME {alias}" -template_ptr = "{target} IN PTR {hostname}" +template_ptr = "{target} IN PTR {hostname}." template_zone = ("$TTL 2D\n" "{soa}\n"