From 8faecf2cabbb94583295d19bcb383e41943755ee Mon Sep 17 00:00:00 2001 From: sirpdboy Date: Tue, 13 Jul 2021 00:36:41 +0800 Subject: [PATCH] up samrtdns33 --- smartdns/conf/custom.conf | 39 ++----- smartdns/conf/smartdns.conf | 203 ++++++++++++++++++++++++++++++++++-- 2 files changed, 201 insertions(+), 41 deletions(-) diff --git a/smartdns/conf/custom.conf b/smartdns/conf/custom.conf index 8e372ba..3d5e33a 100644 --- a/smartdns/conf/custom.conf +++ b/smartdns/conf/custom.conf @@ -1,37 +1,12 @@ +# 测速模式选择 + #Disable ipv6 address resolution #force-AAAA-SOA yes speed-check-mode tcp:443,tcp:80,ping -server 101.6.6.6:5353 -server 202.38.93.153:5353 -server 202.141.162.123:5353 -server 202.141.178.13:5353 -server 2001:da8::666 -server 208.67.222.222:5353 -group guowai -exclude-default-group -server 208.67.220.220:5353 -group guowai -exclude-default-group +#example bind :7054 -group us -no-dualstack-selection -no-cache -force-aaaa-soa +#bind: 6054 -group china +#bind: 7054 -group guowai -server-tcp 1.0.0.1 -group guowai -exclude-default-group -server-tcp 8.8.4.4 -group guowai -exclude-default-group -server-tcp 149.112.112.112 -group guowai -exclude-default-group -server-tcp 2606:4700:4700::1001 -group guowai -exclude-default-group - -server-tls 115.159.131.230 -host-name dns.rubyfish.cn -server-tls dns.rubyfish.cn -server-tls 1.1.1.1 -host-name 1dot1dot1dot1.cloudflare-dns.com -group guowai -exclude-default-group -server-tls 2606:4700:4700::1111 -host-name 1dot1dot1dot1.cloudflare-dns.com -group guowai -exclude-default-group -server-tls 1dot1dot1dot1.cloudflare-dns.com -group guowai -exclude-default-group -server-tls 8.8.8.8 -host-name dns.google -group guowai -exclude-default-group -server-tls dns.google -group guowai -exclude-default-group - -server-https https://45.77.180.10/resolve -host-name dns.containerpi.com -http-host dns.containerpi.com -server-https https://dns.containerpi.com/dns-query -server-https https://115.159.131.230/resolve -host-name dns.rubyfish.cn -http-host dns.rubyfish.cn -server-https https://dns.rubyfish.cn/dns-query -server-https https://202.38.93.153/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org -server-https https://202.141.178.13/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org -server-https https://neatdns.ustclug.org/resolve -server-https https://i.233py.com/dns-query -server-https https://9.9.9.9/dns-query -group guowai -exclude-default-group -server-https https://dns9.quad9.net/dns-query -group guowai -exclude-default-group -server-https https://146.112.41.2/dns-query -host-name doh.opendns.com -http-host doh.opendns.com -group guowai -exclude-default-group -server-https https://doh.opendns.com/dns-query -group guowai -exclude-default-group +# 去广告文件,去掉#就可以使用自带去广告的文件了,也可以自己上传。 +# conf-file /etc/smartdns/anti-ad-smartdns.conf diff --git a/smartdns/conf/smartdns.conf b/smartdns/conf/smartdns.conf index 4823ba0..ab63eda 100644 --- a/smartdns/conf/smartdns.conf +++ b/smartdns/conf/smartdns.conf @@ -1,8 +1,9 @@ config smartdns option server_name 'china' - option dualstack_ip_selection '1' + option dualstack_ip_selection '0' option serve_expired '0' - option redirect 'dnsmasq-upstream' + option redirect 'none' + option rr_ttl_min '300' option enabled '0' option seconddns_enabled '0' option seconddns_tcp_server '1' @@ -19,15 +20,52 @@ config smartdns option tcp_server '0' option ipv6_server '0' option prefetch_domain '1' - option serve_expired '1' - option cache_size '20000' + option cache_size '10000' option rr_ttl_max '3600' - option rr_ttl_min '5' option seconddns_port '7054' option seconddns_server_group 'guowai' list old_redirect 'none' list old_port '6054' list old_enabled '0' +config server + option enabled '1' + option type 'udp' + option name 'CNNIC' + option ip '1.2.4.8' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name 'CNNIC2' + option ip '210.2.4.8' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name 'aildns2' + option ip '223.6.6.6' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name 'dnspai' + option ip '101.226.4.6' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name 'dnspai2' + option ip '123.125.81.6' + option server_group 'china' + option blacklist_ip '0' config server option enabled '1' @@ -48,8 +86,50 @@ config server config server option enabled '1' option type 'udp' - option name 'aildns2' - option ip '223.6.6.6' + option name 'cnc' + option ip '218.4.4.4' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name '114dns' + option ip '114.114.114.114' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name '101dns' + option ip '101.101.101.101' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option type 'udp' + option name '114dns2' + option ip '114.114.115.115' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'rubyfish' + option ip 'rubyfish.cn' + option type 'tls' + option no_check_certificate '0' + option server_group 'china' + option blacklist_ip '0' + +config server + option enabled '1' + option name '360' + option ip 'dot.360.cn' + option type 'tls' + option no_check_certificate '0' option server_group 'china' option blacklist_ip '0' @@ -60,13 +140,31 @@ config server option no_check_certificate '0' option server_group 'china' option blacklist_ip '0' - option enabled '0' + option enabled '1' config server option enabled '1' option name 'google' option ip '8.8.8.8' + option type 'tcp' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'google' + option ip 'dns.google' option type 'tls' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'google' + option ip 'https://dns.google/dns-query' + option type 'https' + option no_check_certificate '0' option server_group 'guowai' option blacklist_ip '0' @@ -74,7 +172,94 @@ config server option enabled '1' option name 'google' option ip '8.8.4.4' - option type 'tls' + option type 'tcp' option server_group 'guowai' option blacklist_ip '0' +config server + option enabled '1' + option name 'opendns' + option ip '208.67.222.222' + option type 'tcp' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'V2EXDNS' + option ip '199.91.73.222' + option type 'tcp' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'V2EXDNS' + option ip '199.91.73.222' + option type 'tls' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'opendns' + option ip '208.67.222.222' + option type 'tls' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'opendns' + option ip 'https://doh.opendns.com/dns-query' + option type 'https' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'cloudflare' + option ip 'cloudflare-dns.com/dns-query' + option type 'https' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'quad9' + option ip '9.9.9.9' + option type 'tls' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'quad9' + option ip 'https://dns.quad9.net/dns-query' + option type 'https' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'rixcloud' + option ip 'doh.rixcloud.dev/dns-query' + option type 'https' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0' + +config server + option enabled '1' + option name 'fallback' + option ip '1.1.1.1/dns-query' + option type 'https' + option no_check_certificate '0' + option server_group 'guowai' + option blacklist_ip '0'