mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新 SmartDNS 配置
This commit is contained in:
+18
-18
@@ -254,13 +254,23 @@ $ sudo nvim /etc/smartdns/smartdns.conf
|
|||||||
|
|
||||||
- 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整。
|
- 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整。
|
||||||
|
|
||||||
- 若仅需 `DoT` / `DoH` 作为上游 DNS 服务器,可移除 `server-tcp` 相关配置项。
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# This configuration file is customized by fox,
|
# This configuration file is customized by fox,
|
||||||
# Optimize SmartDNS parameters for local DNS server.
|
# 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
|
conf-file /etc/smartdns/anti-ad-smartdns.conf
|
||||||
|
cache-file /tmp/smartdns.cache
|
||||||
|
|
||||||
bind [::]:53
|
bind [::]:53
|
||||||
bind-tcp [::]:53
|
bind-tcp [::]:53
|
||||||
@@ -277,13 +287,13 @@ force-qtype-SOA 65
|
|||||||
|
|
||||||
log-level notice
|
log-level notice
|
||||||
|
|
||||||
server 119.29.29.29 -group dnspod -exclude-default-group
|
server-tcp 119.29.29.29 -group dnspod -exclude-default-group
|
||||||
server 2402:4e00:: -group dnspod -exclude-default-group
|
server-tcp 2402:4e00:: -group dnspod -exclude-default-group
|
||||||
nameserver /doh.pub/dnspod
|
nameserver /doh.pub/dnspod
|
||||||
nameserver /dot.pub/dnspod
|
nameserver /dot.pub/dnspod
|
||||||
|
|
||||||
server 223.5.5.5 -group alidns -exclude-default-group
|
server-tcp 223.5.5.5 -group alidns -exclude-default-group
|
||||||
server 2400:3200::1 -group alidns -exclude-default-group
|
server-tcp 2400:3200::1 -group alidns -exclude-default-group
|
||||||
nameserver /dns.alidns.com/alidns
|
nameserver /dns.alidns.com/alidns
|
||||||
|
|
||||||
server 172.16.1.1 -group intranet -exclude-default-group
|
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
|
nameserver /fox.local/intranet
|
||||||
domain-rules /fox.local/ -speed-check-mode none -no-cache
|
domain-rules /fox.local/ -speed-check-mode none -no-cache
|
||||||
|
|
||||||
server-tcp 119.29.29.29
|
server-tls dot.pub
|
||||||
server-tcp 223.5.5.5
|
server-tls dns.alidns.com
|
||||||
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-https https://doh.pub/dns-query
|
server-https https://doh.pub/dns-query
|
||||||
server-https https://dns.alidns.com/dns-query
|
server-https https://dns.alidns.com/dns-query
|
||||||
|
|||||||
+18
-16
@@ -1,7 +1,19 @@
|
|||||||
# This configuration file is customized by fox,
|
# This configuration file is customized by fox,
|
||||||
# Optimize SmartDNS parameters for local DNS server.
|
# 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
|
conf-file /etc/smartdns/anti-ad-smartdns.conf
|
||||||
|
cache-file /tmp/smartdns.cache
|
||||||
|
|
||||||
bind [::]:53
|
bind [::]:53
|
||||||
bind-tcp [::]:53
|
bind-tcp [::]:53
|
||||||
@@ -18,13 +30,13 @@ force-qtype-SOA 65
|
|||||||
|
|
||||||
log-level notice
|
log-level notice
|
||||||
|
|
||||||
server 119.29.29.29 -group dnspod -exclude-default-group
|
server-tcp 119.29.29.29 -group dnspod -exclude-default-group
|
||||||
server 2402:4e00:: -group dnspod -exclude-default-group
|
server-tcp 2402:4e00:: -group dnspod -exclude-default-group
|
||||||
nameserver /doh.pub/dnspod
|
nameserver /doh.pub/dnspod
|
||||||
nameserver /dot.pub/dnspod
|
nameserver /dot.pub/dnspod
|
||||||
|
|
||||||
server 223.5.5.5 -group alidns -exclude-default-group
|
server-tcp 223.5.5.5 -group alidns -exclude-default-group
|
||||||
server 2400:3200::1 -group alidns -exclude-default-group
|
server-tcp 2400:3200::1 -group alidns -exclude-default-group
|
||||||
nameserver /dns.alidns.com/alidns
|
nameserver /dns.alidns.com/alidns
|
||||||
|
|
||||||
server 172.16.1.1 -group intranet -exclude-default-group
|
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
|
nameserver /fox.local/intranet
|
||||||
domain-rules /fox.local/ -speed-check-mode none -no-cache
|
domain-rules /fox.local/ -speed-check-mode none -no-cache
|
||||||
|
|
||||||
server-tcp 119.29.29.29
|
server-tls dot.pub
|
||||||
server-tcp 223.5.5.5
|
server-tls dns.alidns.com
|
||||||
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-https https://doh.pub/dns-query
|
server-https https://doh.pub/dns-query
|
||||||
server-https https://dns.alidns.com/dns-query
|
server-https https://dns.alidns.com/dns-query
|
||||||
|
|||||||
Reference in New Issue
Block a user