如果本身有用 clash 或者 surge 之类的来额外分流到 cf warp proxy mode 的话,可以设置如下规则让 warp 的 dns 请求走自己的 tunnel 出去
[Proxy]
cloudflare = socks5, 127.0.0.1, 40000, udp-relay=true
[Rule]
IP-CIDR,1.0.0.1/32,cloudflare,no-resolve
IP-CIDR,1.1.1.1/32,cloudflare,no-resolve
IP-CIDR,162.159.36.1/32,cloudflare,no-resolve
IP-CIDR,162.159.46.1/32,cloudflare,no-resolve
IP-CIDR6,2606:4700:4700::1111/128,cloudflare,no-resolve
IP-CIDR6,2606:4700:4700::1001/128,cloudflare,no-resolve
PROCESS-NAME,/Applications/Cloudflare
WARP.app/Contents/MacOS/Cloudflare WARP,DIRECT
PROCESS-NAME,/Applications/Cloudflare
WARP.app/Contents/Resources/CloudflareWARP,DIRECT