From a93acf3fec41610d06c04c809b005608799c8785 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Wed, 31 Dec 2025 19:17:46 -0300 Subject: [PATCH] add dns_version file to track current DNS version --- dns/functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dns/functions.py b/dns/functions.py index 9269fed..b3df1d8 100644 --- a/dns/functions.py +++ b/dns/functions.py @@ -36,6 +36,10 @@ def compress_dnsmasq_config(): if newest_conf_mtime <= tar_mtime: return output_file + dns_version_file = os.path.join(base_dir, "config_version.conf") + with open(dns_version_file, "w", encoding="utf-8") as f: + f.write(f"DNS_VERSION={cluster_settings.dns_version}\n") + # Create tar.gz tmp_output = output_file + ".tmp" with tarfile.open(tmp_output, "w:gz") as tar: