From dbdd411673056c4cc666bc8b0c717599c1f25e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sun, 4 Dec 2022 17:45:23 +0200 Subject: [PATCH] Default SOA expire to 30 days --- bind-sidecar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind-sidecar.py b/bind-sidecar.py index 5ecb432..d860c81 100755 --- a/bind-sidecar.py +++ b/bind-sidecar.py @@ -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)