From 9d9d8afe4aae3329179f3186ca374fabab99dc68 Mon Sep 17 00:00:00 2001 From: yuyr Date: Wed, 15 Oct 2025 11:56:48 +0800 Subject: [PATCH] =?UTF-8?q?[#22]=20=E4=BF=AE=E5=A4=8D=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E9=87=8D=E5=90=AFdns=E6=9B=B4=E6=96=B0=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bind/build/dns-monitor.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bind/build/dns-monitor.sh b/src/bind/build/dns-monitor.sh index 2890b47..12fdb76 100644 --- a/src/bind/build/dns-monitor.sh +++ b/src/bind/build/dns-monitor.sh @@ -17,6 +17,9 @@ log_message() { log_message "DNS监控脚本启动" +log_message "删除DNS备份文件(如果存在)" +rm -f $DNS_BACKUP + while true; do if [ -f "$DNS_CONF" ]; then if [ -f "$DNS_BACKUP" ]; then