mihomo icon indicating copy to clipboard operation
mihomo copied to clipboard

[Bug] Macos26 下使用会经常导致 DNS 失效。

Open smallzhan opened this issue 11 months ago • 1 comments

Verify steps

  • [x] I have read the documentation and understand the meaning of all the configuration items I have written, rather than just piling up seemingly useful options or default values.
  • [x] I have carefully reviewed the documentation and have not resolved the issue.
  • [x] I have searched the Issue Tracker for the issue I want to raise and did not find it.
  • [ ] I am a non-Chinese user.
  • [x] I have tested with the latest Alpha branch version, and the issue still persists.
  • [x] I have provided the server and client configuration files and processes that can reproduce the issue locally, rather than a sanitized complex client configuration file.
  • [x] I provided the simplest configuration that can be used to reproduce the errors in my report, rather than relying on remote servers or piling on a lot of unnecessary configurations for reproduction.
  • [x] I have provided complete logs, rather than just the parts I think are useful out of confidence in my own intelligence.
  • [x] I have directly reproduced the error using the Mihomo command-line program, rather than using other tools or scripts.

Operating System

MacOS

System Version

Macos 26.2 M3 Pro

Mihomo Version

Mihomo Meta alpha-smart-1cc4fd0 darwin arm64 with go1.25.5 Sat Dec 20 11:37:31 UTC 2025 Use tags: with_gvisor

Configuration File

直接使用这份配置。
https://raw.githubusercontent.com/666OS/YYDS/refs/heads/main/mihomo/config/OneTouch.yaml

Description

Macos26 下,使用一段时间,DNS 就掉了。具体表现为,使用系统 scutil 工具,会有如下输出

❯ scutil --dns |head                                                                                                      
DNS configuration

resolver #1
  flags    : Request A records, Request AAAA records
  reach    : 0x00000000 (Not Reachable)

出现这个情况后,访问任何网页都会提示离线,因为域名无法解析。

Reproduction Steps

正常使用,高概率出现。或者休眠后起来复现概率较高。切换过其他配置,去掉 DNS 覆写,增加覆写都无效。tun 模式,proxy 模式都有影响。之前 macos15 没有问题,自从升级 26 开始出现。

Logs


smallzhan avatar Dec 25 '25 06:12 smallzhan

Smart内核请不要来mihomo下面反馈

OTHERKIDSNOCANDY1 avatar Dec 25 '25 08:12 OTHERKIDSNOCANDY1