9
0
Fork 0

Default SOA expire to 30 days
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-12-04 17:45:23 +02:00
parent f4befe5aeb
commit dbdd411673
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class BindSidecar(object):
print("Adding zone: %s" % zone)
if not os.path.exists(path):
with open(path + ".part", "w") as fh:
fh.write("@ IN SOA ns1.%(zone)s. hostmaster.%(zone)s. (1 300 300 300 300)\n" % locals())
fh.write("@ IN SOA ns1.%(zone)s. hostmaster.%(zone)s. (1 300 300 2592000 300)\n" % locals())
fh.write(" NS ns1.%(zone)s.\n" % locals())
fh.write("ns1 A 127.0.0.1\n")
os.rename(path + ".part", path)