mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
更新 SmartDNS 配置
This commit is contained in:
@@ -6,7 +6,7 @@ $ sudo chmod +x /opt/dnsmasq_plugin.sh
|
||||
|
||||
## 设置 crontab
|
||||
|
||||
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf
|
||||
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns.d/anti-ad-smartdns.conf
|
||||
|
||||
20 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-dnsmasq.conf -O /etc/dnsmasq.d/anti-ad-dnsmasq.conf
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# server 2402:4e00::
|
||||
# server 2400:3200::1
|
||||
|
||||
conf-file /etc/smartdns/anti-ad-smartdns.conf
|
||||
conf-file /etc/smartdns.d/*.conf
|
||||
cache-file /tmp/smartdns.cache
|
||||
|
||||
log-level notice
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# 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
|
||||
|
||||
log-level notice
|
||||
|
||||
bind [::]:53
|
||||
bind-tcp [::]:53
|
||||
|
||||
serve-expired yes
|
||||
serve-expired-ttl 57600
|
||||
serve-expired-reply-ttl 3
|
||||
prefetch-domain yes
|
||||
serve-expired-prefetch-time 28800
|
||||
|
||||
force-qtype-SOA 65
|
||||
|
||||
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-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
|
||||
server fdac::1 -group intranet -exclude-default-group
|
||||
nameserver /fox.home.arpa/intranet
|
||||
domain-rules /fox.home.arpa/ -speed-check-mode none -no-cache
|
||||
|
||||
server-tls dot.pub
|
||||
server-tls dns.alidns.com
|
||||
|
||||
server-https https://doh.pub/dns-query
|
||||
server-https https://dns.alidns.com/dns-query
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
## 下载 smartdns 插件安装脚本
|
||||
$ sudo wget https://gitee.com/callmer/pve_toss_notes/raw/master/src/debian/debian_dns_smartdns_plugin.conf -O /opt/smartdns_plugin.sh
|
||||
|
||||
## 设置安装脚本权限
|
||||
$ sudo chmod +x /opt/smartdns_plugin.sh
|
||||
|
||||
## 设置 crontab
|
||||
|
||||
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf
|
||||
|
||||
20 5 * * * /usr/bin/bash /opt/smartdns_plugin.sh
|
||||
|
||||
Reference in New Issue
Block a user