openwrt smart dns and adg 旁路由配置
![](https://img2023.cnblogs.com/blog/400733/202303/400733-20230322112228540-1757362842.png)
openwrt高级设置smartdns:
config smartdns
option enabled '1'
option server_name 'gn'
option port '6053'
option tcp_server '1'
option ipv6_server '1'
option dualstack_ip_selection '0'
option prefetch_domain '1'
option serve_expired '1'
option redirect 'none'
option cache_size '5000'
option rr_ttl_min '30'
option rr_ttl_max '300'
option seconddns_port '6553'
option seconddns_tcp_server '1'
option seconddns_no_rule_addr '0'
option seconddns_no_rule_nameserver '0'
option seconddns_no_rule_ipset '0'
option seconddns_no_rule_soa '0'
option force_aaaa_soa '0'
option coredump '0'
option seconddns_enabled '1'
option seconddns_server_group 'gw'
option seconddns_no_speed_check '1'
option seconddns_no_dualstack_selection '1'
option seconddns_no_cache '1'
list old_redirect 'none'
list old_port '6053'
list old_enabled '1'
config server
option enabled '1'
option type 'udp'
option name '114'
option ip '114.114.114.114'
option server_group 'gn'
option blacklist_ip '0'
config server
option enabled '1'
option type 'udp'
option name '阿里'
option ip '223.5.5.5'
option server_group 'gn'
option blacklist_ip '0'
config server
option enabled '1'
option type 'udp'
option name '百度'
option ip '180.76.76.76'
option server_group 'gn'
option blacklist_ip '0'
config server
option enabled '1'
option type 'udp'
option name 'dnspod'
option ip '119.29.29.29'
option server_group 'gn'
option blacklist_ip '0'
config server
option enabled '1'
option name 'Google'
option ip '8.8.8.8'
option type 'tcp'
option server_group 'gw'
option blacklist_ip '0'
config server
option enabled '1'
option name 'Google'
option ip '8.8.8.8'
option type 'tls'
option server_group 'gw'
option blacklist_ip '0'
config server
option enabled '1'
option name 'cloudflare'
option ip '1.1.1.1'
option type 'tcp'
option server_group 'gw'
option blacklist_ip '0'
config server
option enabled '1'
option name 'cloudflare'
option ip '1.1.1.1'
option type 'tls'
option server_group 'gw'
option blacklist_ip '0'