Default SOA expire to 30 days
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
f4befe5aeb
commit
dbdd411673
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user