Step 1:

General → TAP Device → Manage → Install

Step 2:

Settings → Profile Mixin → Type YAML → YAML Edit

mixin:
  dns:
    enable: true
    enhanced-mode: redir-host
    listen: 0.0.0.0:53
    nameserver:
      - <https://rubyfish.cn/dns-query>
      - <https://doh.dns.sb/dns-query>
      - <https://dns.adguard.com/dns-query>
      - <https://cdn-doh.ssnm.xyz/dns-query>
      - 119.29.29.29 #腾讯
      - 223.5.5.5 #阿里

Step 3:

General → Mixin, On

See https://docs.cfw.lbyczf.com/contents/tap.html https://uzbox.com/tech/clash-atp.html

TAP 模式 | Clash for Windows

Clash for Windows 教程:配置 TUN/TAP 虚拟网卡,订阅持续更新 - 技术宅 - 优质盒子