Connection troubleshooting

Clash Nyanpasu TUN-off DNS fix for Windows - Clash Official

After TUN is disabled in Clash Nyanpasu on Windows, DNS still points to 127.0.0.1. Check the nyanpasu-service version, update to the v2.0.1 service fix, and verify direct and proxy requests.

  • Clash Nyanpasu
  • Windows
  • TUN
  • DNS
  • Meow
On this page

When Clash Nyanpasu runs Meow on Windows, some direct applications may stop resolving names after TUN is disabled while HTTP proxy requests still work. Record the adapter DNS, TUN state, application version, and service version before deciding whether to update the service.

Confirm that DNS remains at 127.0.0.1 after TUN is disabled

Official issue #5883 records this behavior on Windows 11 with Clash Nyanpasu 2.0.1, Meow, and service mode: the TUN adapter disappears and the 127.0.0.1:53 listener stops, but the physical adapter DNS remains 127.0.0.1.

curl.exe --noproxy cannot resolve a direct request. This applies to this TUN shutdown path and does not attribute every Windows DNS failure to Nyanpasu.

Test the direct and proxy paths separately. If direct access fails while proxy requests return, first inspect local DNS cleanup and the service lifecycle. If both paths fail, continue checking the network, configuration, and node instead of replacing DNS immediately.

Check the nyanpasu-service that is actually running

The service file in the application directory may differ from the file registered with Windows. The official reproduction found the interface at v2.0.1 while %ProgramData% yanpasu-servicedata yanpasu-service.exe was still v2.0.0. The old service can keep DNS cleanup failing after TUN is disabled.

Read-only check of the application, service, and direct resolution
sc.exe query nyanpasu-service
sc.exe qc nyanpasu-service
Get-DnsClientServerAddress -AddressFamily IPv4
Resolve-DnsName example.com
curl.exe --noproxy "*" https://www.qq.com/

Update the service with the official v2.0.1 release

The official v2.0.1 notes require nyanpasu-service 2.0.2 and describe fixes for the old service stale pid record and startup stage. Export the Profile and record the current adapter DNS before obtaining the matching package from the official v2.0.1 release page.

Update the actual service

  1. Close Nyanpasu and keep a configuration copy

    Exit the application normally and save the Profile and current adapter DNS record.

  2. Install or update the official v2.0.1 application

    Get the package for the matching architecture from the official v2.0.1 release page and complete the normal installation flow.

  3. Run the in-app service update flow

    Start the application with administrator rights and follow the prompt to update or install nyanpasu-service.

  4. Confirm the service registration path and file version

    Restart nyanpasu-service and check the service state and the file version that is actually loaded.

  5. Reopen Nyanpasu and keep the original configuration

    Keep the original Profile and Meow configuration for now, then continue with TUN, DNS, and connection checks.

Do not replace only the GUI files in the application directory. Service mode is managed by the binary loaded by the Windows service. Check the service state and file version after the update, then test TUN again.

Toggle TUN again and verify recovery after failure

After updating the service, start TUN, confirm that Meow is running, and disable TUN again. Check that the physical adapter DNS returns to its original non-loopback address, use Resolve-DnsName and curl.exe --noproxy to verify direct access, then enable the system proxy and verify the proxy path against the same target.

Before you finish

  • The application, Meow, and nyanpasu-service versions are recorded separately
  • The physical adapter DNS no longer remains at 127.0.0.1 after TUN is disabled
  • Resolve-DnsName completes a real resolution
  • The curl.exe --noproxy direct request succeeds
  • System proxy requests and TUN after re-enabling both work
  • Redacted logs, the Profile backup, and the original DNS settings are saved if it still fails

If the service update still leaves DNS at 127.0.0.1, enable TUN again to restore local resolution, then stop Nyanpasu and restore the DNS recorded earlier in Windows network settings. Keep the service log and version information to avoid more state changes from repeated TUN toggles. After confirming the original DNS, service version, and configuration copy, decide whether to return to the previously working application and service combination.

References