...
 
Commits (3)
config.ini
serial.json
**/__pycache__/**
**.zone
**.reverse
......@@ -48,7 +48,7 @@ template_sshfp = "{hostname} SSHFP {algo} {type} {fp}"
template_ds = "{subzone} {ttl} IN DS {id} {algo} {type} {fp}"
template_zone = (
"$TTL 2D\n"
"$TTL 3600\n"
"{soa}\n"
"\n"
"{originv4}\n"
......@@ -76,7 +76,7 @@ template_zone = (
)
template_reverse = (
"$TTL 2D\n"
"$TTL 3600\n"
"{soa}\n"
"\n"
"{ns_records}\n"
......@@ -97,6 +97,9 @@ zone_names = []
def write_dns_file(zone, verbose=False):
global serial
if verbose:
print("serial = {}".format(serial))
zone_name = zone['name'][1:]
now = datetime.datetime.now(datetime.timezone.utc)
......