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

[Bug] nameserver-policy下runle-set分流失效 #868

Closed
6 tasks done
dycwuxing opened this issue Dec 5, 2023 · 1 comment
Closed
6 tasks done

[Bug] nameserver-policy下runle-set分流失效 #868

dycwuxing opened this issue Dec 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dycwuxing
Copy link

dycwuxing commented Dec 5, 2023

Verify steps

  • 确保你使用的是本仓库最新的的 mihomo 或 mihomo Alpha 版本 Ensure you are using the latest version of Mihomo or Mihomo Alpha from this repository.
  • 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • 我已经使用 Alpha 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • 这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.

Mihomo version

V1.17~alpha-aef87b2(Tue Dec 5 15:39:06 CST 2023)

What OS are you seeing the problem on?

macOS, Windows, Linux

Mihomo config

dns:
  enable: true
  ipv6: true
  ipv6-timeout: 300
  enhanced-mode: redir-host
  use-hosts: true
  listen: 0.0.0.0:7874
  max-ttl: 10
  default-nameserver:
  - tls://223.5.5.5:853
  - https://1.12.12.12/dns-query
  - https://223.5.5.5/dns-query
  nameserver:
  - https://1.1.1.1/dns-query#🐟漏网国外
  - https://1.0.0.1/dns-query#🐟漏网国外
  - tls://1.1.1.1#🐟漏网国外
  proxy-server-nameserver:
  - https://doh.pub/dns-query
  - https://dns.alidns.com/dns-query
  - https://doh.360.cn
  nameserver-policy:
    rule-set:ChinaMax_Classical:
    - tls://223.5.5.5:853
    - https://1.12.12.12/dns-query
    - https://223.5.5.5/dns-query

rules:
- RULE-SET,ChinaMax_Classical,🎯全球直连

rule-providers:
  ChinaMax_Classical:
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Classical.yaml
    path: ./rule_provider/clash/ChinaMax_Classical.yaml
    type: http
    behavior: classical
    interval: 3600
    format: yaml

Mihomo log

#正式版V1.17.0和12/05日最新的alpha都有此问题
#使用ruleset进行DNS分流
2023-12-05 16:23:21 INFO - [clash]: �[37mDEBU�[0m[2023-12-05T16:23:21.15003+08:00] [DNS] resolve www.baidu.com from tls://1.1.1.1:853 
2023-12-05 16:23:21 INFO - [clash]: �[37mDEBU�[0m[2023-12-05T16:23:21.15003+08:00] [DNS] resolve www.baidu.com from https://1.0.0.1:443/dns-query 
2023-12-05 16:23:21 INFO - [clash]: �[37mDEBU�[0m[2023-12-05T16:23:21.1510234+08:00] [DNS] resolve www.baidu.com from https://1.1.1.1:443/dns-query 

#正式版V1.16.0
#使用ruleset进行DNS分流
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from https://223.5.5.5:443/dns-query 
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from https://1.12.12.12:443/dns-query 
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from https://223.5.5.5:443/dns-query 
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from tls://223.5.5.5:853 
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from https://1.12.12.12:443/dns-query 
2023-11-29 09:52:17 INFO - [clash]: �[37mDEBU�[0m[2023-11-29T09:52:17.1128772+08:00] [DNS] resolve www.baidu.com from tls://223.5.5.5:853

image

Description

期望nameserver-policy下rule-set可以正常分流

1)关于设置了"default-nameserver"是因为之前我的"nameserver"设置的是域名DNS,目前再尝试哪方面原因导致失效,临时改的数字dns,所以"default-nameserver"未删除
2)此套配置,原封不动,仅切换核心为1.16,nameserver-policy下rule-set就能正常分流
3)不继续用1.16是因为1.16的内存占用高,且会偶发性崩溃,1.17目前来看,除了nameserver-policy下rule-set不生效外,其他都不错

@dycwuxing dycwuxing added the bug Something isn't working label Dec 5, 2023
@dycwuxing
Copy link
Author

经测试:Release created at Wed Dec 6 12:07:13 CST 2023中已经修复

chen08209 pushed a commit to chen08209/Clash.Meta that referenced this issue Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant