Open yanxin152133 opened 1 year ago
/etc/config/smartdns
config smartdns option server_name 'smartdns' option port '53' option auto_set_dnsmasq '1' option serve_expired '1' option cache_persist '1' option resolve_local_hostnames '1' option seconddns_port '6553' option seconddns_tcp_server '1' option prefetch_domain '1' option force_https_soa '0' option seconddns_no_speed_check '1' option seconddns_no_dualstack_selection '1' option seconddns_no_cache '1' option seconddns_force_aaaa_soa '1' option seconddns_server_group 'office' option seconddns_enabled '1' option seconddns_no_rule_addr '1' option seconddns_no_rule_nameserver '1' option seconddns_no_rule_ipset '1' option seconddns_no_rule_soa '1' option rr_ttl '30' option rr_ttl_min '30' option rr_ttl_max '300' option rr_ttl_reply_max '300' option coredump '1' option log_level 'debug' option tcp_server '1' option ipv6_server '0' option force_aaaa_soa '1' option dualstack_ip_selection '0' option enabled '1' option cache_size '10000' option enable_auto_update '1' option bind_device '0' option old_port '53' option old_enabled '1' option old_auto_set_dnsmasq '1' config domain-rule option no_speed_check '1' option force_aaaa_soa '1' option forwarding_domain_set_file '/etc/smartdns/domain-set/oversea_domainlist.conf' option server_group 'office' option ipset_name 'office' option block_domain_set_file '/etc/smartdns/domain-set/reject.conf' config server option enabled '1' option type 'https' option server_group 'china' option ip 'dns.alidns.com/dns-query' option name 'Ali' config server option enabled '1' option type 'https' option server_group 'china' option ip '223.5.5.5/dns-query' option name 'Ali1' config server option enabled '1' option type 'https' option server_group 'china' option ip '223.6.6.6/dns-query' option name 'Ali2' config server option enabled '1' option name 'DNSPod Public DNS' option type 'https' option server_group 'china' option ip 'doh.pub/dns-query' config server option enabled '1' option name 'DNSPod Public DNS1' option type 'https' option server_group 'china' option ip '1.12.12.12/dns-query' config server option enabled '1' option name 'DNSPod Public DNS2' option type 'https' option server_group 'china' option ip '120.53.53.53/dns-query' config server option enabled '1' option type 'https' option server_group 'office' option exclude_default_group '1' option ip 'dns.cloudflare.com/dns-query' option name 'Cloudflare1' config server option enabled '1' option type 'https' option server_group 'office' option exclude_default_group '1' option ip '1.0.0.1/dns-query' option name 'Cloudflare2' config server option enabled '1' option type 'https' option server_group 'office' option exclude_default_group '1' option ip 'dns.adguard-dns.com/dns-query' option name 'AdGuard1' config server option enabled '1' option name 'Google' option type 'https' option server_group 'office' option exclude_default_group '1' option ip 'dns.google/dns-query' config server option enabled '1' option name 'OpenDNS' option type 'https' option server_group 'office' option exclude_default_group '1' option ip 'doh.opendns.com/dns-query' config server option enabled '1' option type 'udp' option name 'AdGuard2' option ip '94.140.14.14' option server_group 'office' option exclude_default_group '1' config server option enabled '1' option type 'udp' option name 'Ali3' option ip '223.5.5.5' option server_group 'china' config server option enabled '1' option type 'udp' option name 'Cloudflare3' option ip '1.1.1.1' option server_group 'office' option exclude_default_group '1' config server option enabled '1' option type 'udp' option name 'DNSPod Public DNS3' option ip '119.29.29.29' option server_group 'china' config server option enabled '1' option type 'udp' option name 'Google1' option ip '8.8.8.8' option server_group 'office' option exclude_default_group '1' config download-file option type 'list' option name 'oversea_domainlist.conf' option url 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/gfw.txt' config download-file option type 'list' option name 'reject.conf' option url 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt'
注意事项:
/etc/config/smartdns