Closed qqrate closed 7 months ago
请教各位,openwrt23.05 ,如题,参照default config,使用自定义配置,在openwrt上配合openclash使用,53转发至5335,能正常解析分流,但最近在切换节点时看小说网站(国内可直连)时,发现节点IP被网站ban,遂将该网站加入至whitelist,清除cache重启后仍无效,nslookup结果看,local_sequence也能正常获取到DNS。 尝试:为确认问题,将speedtest.net也加入whitelist,也是显示代理IP? 照抄默认配置的whitelist,看不出有逻辑问题啊,特来请教是哪里出错了?还是说在openwrt上运行有问题?
配置如下 log: level: info file: "/tmp/mosdns.log" api: http: "127.0.0.1:9091"
plugins:
tag: geosite_cn type: domain_set args: files:
tag: geoip_cn type: ip_set args: files:
tag: geosite_no_cn type: domain_set args: files:
_- tag: whitelist type: domain_set args: files:
tag: blocklist type: domain_set args: files:
tag: hosts type: hosts args: files:
tag: redirect type: redirect args: files:
tag: greylist type: domain_set args: files:
tag: adlist type: domain_set args: files:
tag: cache type: cache args: size: 20480 lazy_cache_ttl: 0 dump_file: "/etc/mosdns/cache.dump" dump_interval: 43200
tag: forward_local type: forward args: concurrent: 2 upstreams:
- addr: "221.5.88.88" #本地运营商DNS服务器1 - addr: "https://1.12.12.12/dns-query" #腾讯DOH - addr: "116.116.116.116" - addr: "https://dns.alidns.com/dns-query"
tag: forward_remote type: forward args: concurrent: 3 upstreams:
tag: local_sequence type: sequence args:
tag: remote_sequence type: sequence args:
tag: has_resp_sequence type: sequence args:
tag: query_is_local_ip type: sequence args:
tag: query_is_remote type: sequence args:
tag: fallback type: fallback args:
primary: query_is_remote secondary: query_is_remote threshold: 150 always_standby: true
tag: query_is_local_domain type: sequence args:
tag: query_is_no_local_domain type: sequence args:
_- tag: query_is_whitelist_domain type: sequence args:
tag: query_is_greylist_domain type: sequence args:
tag: query_is_reject_domain type: sequence args:
tag: main_sequence type: sequence args:
tag: udp_server type: udp_server args: entry: main_sequence listen: "127.0.0.1:5335"
tag: tcp_server type: tcp_server args: entry: main_sequence listen: "127.0.0.1:5335"
mosdns 可以决定让域名使用哪一个DNS 进行解析,但仅仅是解析。它与科学软件分流完全不搭边。科学的风流是代理层面的分流,它由ip 决定是否进行代理。
而 mosdns 的域名解析分流无法决定科学代理的进行。
参考问题 184
请教各位,openwrt23.05 ,如题,参照default config,使用自定义配置,在openwrt上配合openclash使用,53转发至5335,能正常解析分流,但最近在切换节点时看小说网站(国内可直连)时,发现节点IP被网站ban,遂将该网站加入至whitelist,清除cache重启后仍无效,nslookup结果看,local_sequence也能正常获取到DNS。 尝试:为确认问题,将speedtest.net也加入whitelist,也是显示代理IP? 照抄默认配置的whitelist,看不出有逻辑问题啊,特来请教是哪里出错了?还是说在openwrt上运行有问题?
配置如下 log: level: info file: "/tmp/mosdns.log" api: http: "127.0.0.1:9091"
plugins:
tag: geosite_cn type: domain_set args: files:
tag: geoip_cn type: ip_set args: files:
tag: geosite_no_cn type: domain_set args: files:
_- tag: whitelist type: domain_set args: files:
tag: blocklist type: domain_set args: files:
tag: hosts type: hosts args: files:
tag: redirect type: redirect args: files:
tag: greylist type: domain_set args: files:
tag: adlist type: domain_set args: files:
tag: cache type: cache args: size: 20480 lazy_cache_ttl: 0 dump_file: "/etc/mosdns/cache.dump" dump_interval: 43200
tag: forward_local type: forward args: concurrent: 2 upstreams:
- addr: "udp://223.5.5.5" #阿里
tag: forward_remote type: forward args: concurrent: 3 upstreams:
- addr: "tcp://8.8.8.8"
tag: local_sequence type: sequence args:
tag: remote_sequence type: sequence args:
tag: has_resp_sequence type: sequence args:
tag: query_is_local_ip type: sequence args:
tag: query_is_remote type: sequence args:
tag: fallback type: fallback args:
primary: query_is_local_ip
primary: query_is_remote secondary: query_is_remote threshold: 150 always_standby: true
tag: query_is_local_domain type: sequence args:
tag: query_is_no_local_domain type: sequence args:
_- tag: query_is_whitelist_domain type: sequence args:
tag: query_is_greylist_domain type: sequence args:
tag: query_is_reject_domain type: sequence args:
tag: main_sequence type: sequence args:
tag: udp_server type: udp_server args: entry: main_sequence listen: "127.0.0.1:5335"
tag: tcp_server type: tcp_server args: entry: main_sequence listen: "127.0.0.1:5335"