From b8a0db90a3f5347e92a91aa3d49d4d2c7a3b091a Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Sun, 16 Jul 2023 04:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20SmartDNS=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06.PVE用模板克隆虚拟机.md | 16 +++++++--------- src/debian_smartdns.conf | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/06.PVE用模板克隆虚拟机.md b/06.PVE用模板克隆虚拟机.md index e175880..be5f6de 100644 --- a/06.PVE用模板克隆虚拟机.md +++ b/06.PVE用模板克隆虚拟机.md @@ -255,8 +255,9 @@ conf-file /etc/smartdns/anti-ad-smartdns.conf bind [::]:53 bind-tcp [::]:53 -cache-size 32768 - +serve-expired yes +serve-expired-ttl 86400 +serve-expired-reply-ttl 3 prefetch-domain yes serve-expired-prefetch-time 43200 @@ -268,19 +269,16 @@ log-level warn server 119.29.29.29 -group dnspod server 2402:4e00:: -group dnspod - server 223.5.5.5 -group alidns server 2400:3200::1 -group alidns +nameserver /doh.pub/dnspod +nameserver /dot.pub/dnspod +nameserver /dns.alidns.com/alidns server 172.16.1.1 -group fox server fdac::1 -group fox - -nameserver /doh.pub/dnspod -nameserver /dot.pub/dnspod - -nameserver /dns.alidns.com/alidns - nameserver /fox.local/fox +domain-rules /fox.local/ -no-cache -speed-check-mode none server-tcp 119.29.29.29 server-tcp 223.5.5.5 diff --git a/src/debian_smartdns.conf b/src/debian_smartdns.conf index 307ab0f..88b2b57 100644 --- a/src/debian_smartdns.conf +++ b/src/debian_smartdns.conf @@ -6,8 +6,9 @@ conf-file /etc/smartdns/anti-ad-smartdns.conf bind [::]:53 bind-tcp [::]:53 -cache-size 32768 - +serve-expired yes +serve-expired-ttl 86400 +serve-expired-reply-ttl 3 prefetch-domain yes serve-expired-prefetch-time 43200 @@ -19,19 +20,16 @@ log-level warn server 119.29.29.29 -group dnspod server 2402:4e00:: -group dnspod - server 223.5.5.5 -group alidns server 2400:3200::1 -group alidns +nameserver /doh.pub/dnspod +nameserver /dot.pub/dnspod +nameserver /dns.alidns.com/alidns server 172.16.1.1 -group fox server fdac::1 -group fox - -nameserver /doh.pub/dnspod -nameserver /dot.pub/dnspod - -nameserver /dns.alidns.com/alidns - nameserver /fox.local/fox +domain-rules /fox.local/ -no-cache -speed-check-mode none server-tcp 119.29.29.29 server-tcp 223.5.5.5