10
0

Default SOA expire to 30 days
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-12-04 17:45:23 +02:00
parent f4befe5aeb
commit dbdd411673

View File

@ -62,7 +62,7 @@ class BindSidecar(object):
print("Adding zone: %s" % zone) print("Adding zone: %s" % zone)
if not os.path.exists(path): if not os.path.exists(path):
with open(path + ".part", "w") as fh: 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(" NS ns1.%(zone)s.\n" % locals())
fh.write("ns1 A 127.0.0.1\n") fh.write("ns1 A 127.0.0.1\n")
os.rename(path + ".part", path) os.rename(path + ".part", path)