Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartdns 设置 #4

Open
yanxin152133 opened this issue Aug 5, 2023 · 1 comment
Open

smartdns 设置 #4

yanxin152133 opened this issue Aug 5, 2023 · 1 comment

Comments

@yanxin152133
Copy link
Owner

yanxin152133 commented Aug 5, 2023

/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'
@yanxin152133
Copy link
Owner Author

注意事项:

  • kms激活需要手动激活

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant