1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-24 19:07:23 +01:00

initial changes to use unbound as local dns resolver instead of bind

This commit is contained in:
KiekerJan
2022-03-20 20:57:19 +01:00
parent aefc4536d4
commit 640751b606
6 changed files with 87 additions and 47 deletions

View File

@@ -115,9 +115,9 @@ def do_dns_update(env, force=False):
# If this is the only thing that changed?
updated_domains.append("DKIM configuration")
# Clear bind9's DNS cache so our own DNS resolver is up to date.
# Clear unbound's DNS cache so our own DNS resolver is up to date.
# (ignore errors with trap=True)
shell('check_call', ["/usr/sbin/rndc", "flush"], trap=True)
shell('check_call', ["/usr/sbin/unbound-control", "reload"], trap=True)
if len(updated_domains) == 0:
# if nothing was updated (except maybe DKIM's files), don't show any output