diff --git a/06.PVE用模板克隆虚拟机.md b/06.PVE用模板克隆虚拟机.md index 8b7df91..58a4c72 100644 --- a/06.PVE用模板克隆虚拟机.md +++ b/06.PVE用模板克隆虚拟机.md @@ -254,13 +254,23 @@ $ sudo nvim /etc/smartdns/smartdns.conf - 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整。 -- 若仅需 `DoT` / `DoH` 作为上游 DNS 服务器,可移除 `server-tcp` 相关配置项。 - ```bash # This configuration file is customized by fox, # Optimize SmartDNS parameters for local DNS server. +# +# For use common DNS server as upstream DNS server, +# please modify 'server' parameter according to +# your network environment. +# +# eg: +# server 119.29.29.29 +# server 223.5.5.5 +# server 114.114.114.114 +# server 2402:4e00:: +# server 2400:3200::1 conf-file /etc/smartdns/anti-ad-smartdns.conf +cache-file /tmp/smartdns.cache bind [::]:53 bind-tcp [::]:53 @@ -277,13 +287,13 @@ force-qtype-SOA 65 log-level notice -server 119.29.29.29 -group dnspod -exclude-default-group -server 2402:4e00:: -group dnspod -exclude-default-group +server-tcp 119.29.29.29 -group dnspod -exclude-default-group +server-tcp 2402:4e00:: -group dnspod -exclude-default-group nameserver /doh.pub/dnspod nameserver /dot.pub/dnspod -server 223.5.5.5 -group alidns -exclude-default-group -server 2400:3200::1 -group alidns -exclude-default-group +server-tcp 223.5.5.5 -group alidns -exclude-default-group +server-tcp 2400:3200::1 -group alidns -exclude-default-group nameserver /dns.alidns.com/alidns server 172.16.1.1 -group intranet -exclude-default-group @@ -291,18 +301,8 @@ server fdac::1 -group intranet -exclude-default-group nameserver /fox.local/intranet domain-rules /fox.local/ -speed-check-mode none -no-cache -server-tcp 119.29.29.29 -server-tcp 223.5.5.5 -server-tcp 114.114.114.114 - -server-tcp 2402:4e00:: -server-tcp 2400:3200::1 -server-tcp 2400:3200:baba::1 - -server-tls 1.12.12.12 -spki-pin 5TIMjgyMhA0qmPdK+AM9LX6vNI/9EPBydh/ZXdfcYmI= -host-name dot.pub -server-tls 120.53.53.53 -spki-pin 5TIMjgyMhA0qmPdK+AM9LX6vNI/9EPBydh/ZXdfcYmI= -host-name dot.pub -server-tls 223.5.5.5 -spki-pin ZwR21gnCMTzsM6VWtnb/azufgYegWWuhE9reP5tamWU= -host-name dns.alidns.com -server-tls 223.6.6.6 -spki-pin ZwR21gnCMTzsM6VWtnb/azufgYegWWuhE9reP5tamWU= -host-name dns.alidns.com +server-tls dot.pub +server-tls dns.alidns.com server-https https://doh.pub/dns-query server-https https://dns.alidns.com/dns-query diff --git a/src/debian_smartdns.conf b/src/debian_smartdns.conf index c76d4a6..32d31d8 100644 --- a/src/debian_smartdns.conf +++ b/src/debian_smartdns.conf @@ -1,7 +1,19 @@ # This configuration file is customized by fox, # Optimize SmartDNS parameters for local DNS server. +# +# For use common DNS server as upstream DNS server, +# please modify 'server' parameter according to +# your network environment. +# +# eg: +# server 119.29.29.29 +# server 223.5.5.5 +# server 114.114.114.114 +# server 2402:4e00:: +# server 2400:3200::1 conf-file /etc/smartdns/anti-ad-smartdns.conf +cache-file /tmp/smartdns.cache bind [::]:53 bind-tcp [::]:53 @@ -18,13 +30,13 @@ force-qtype-SOA 65 log-level notice -server 119.29.29.29 -group dnspod -exclude-default-group -server 2402:4e00:: -group dnspod -exclude-default-group +server-tcp 119.29.29.29 -group dnspod -exclude-default-group +server-tcp 2402:4e00:: -group dnspod -exclude-default-group nameserver /doh.pub/dnspod nameserver /dot.pub/dnspod -server 223.5.5.5 -group alidns -exclude-default-group -server 2400:3200::1 -group alidns -exclude-default-group +server-tcp 223.5.5.5 -group alidns -exclude-default-group +server-tcp 2400:3200::1 -group alidns -exclude-default-group nameserver /dns.alidns.com/alidns server 172.16.1.1 -group intranet -exclude-default-group @@ -32,18 +44,8 @@ server fdac::1 -group intranet -exclude-default-group nameserver /fox.local/intranet domain-rules /fox.local/ -speed-check-mode none -no-cache -server-tcp 119.29.29.29 -server-tcp 223.5.5.5 -server-tcp 114.114.114.114 - -server-tcp 2402:4e00:: -server-tcp 2400:3200::1 -server-tcp 2400:3200:baba::1 - -server-tls 1.12.12.12 -spki-pin 5TIMjgyMhA0qmPdK+AM9LX6vNI/9EPBydh/ZXdfcYmI= -host-name dot.pub -server-tls 120.53.53.53 -spki-pin 5TIMjgyMhA0qmPdK+AM9LX6vNI/9EPBydh/ZXdfcYmI= -host-name dot.pub -server-tls 223.5.5.5 -spki-pin ZwR21gnCMTzsM6VWtnb/azufgYegWWuhE9reP5tamWU= -host-name dns.alidns.com -server-tls 223.6.6.6 -spki-pin ZwR21gnCMTzsM6VWtnb/azufgYegWWuhE9reP5tamWU= -host-name dns.alidns.com +server-tls dot.pub +server-tls dns.alidns.com server-https https://doh.pub/dns-query server-https https://dns.alidns.com/dns-query