From d2e0d1fecca8174e0c4495c519c0ee3861f8705d Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 20 Dec 2023 15:48:01 +0100 Subject: [PATCH] DNS: flush_zone before validating DNS entries. fixes #140 --- cmdeploy/src/cmdeploy/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/dns.py b/cmdeploy/src/cmdeploy/dns.py index c7e4e01..fa53045 100644 --- a/cmdeploy/src/cmdeploy/dns.py +++ b/cmdeploy/src/cmdeploy/dns.py @@ -13,7 +13,7 @@ class DNS: self.out = out self.ssh = f"ssh root@{mail_domain} -- " try: - self.shell(f"unbound-control flush {mail_domain}") + self.shell(f"unbound-control flush_zone {mail_domain}") except subprocess.CalledProcessError: pass