Fix DDNS Issues with OpenClash on OpenWRT


OpenClash is a very useful network acceleration software on OpenWRT routers. It can achieve traffic segmentation for different websites through rule settings, thereby improving network access speed and security. OpenClash provides multiple working modes, among which the fake-IP enhanced mode can forward all DNS requests, improving the accuracy of traffic segmentation.

! The Problem: In fake-IP enhanced mode, OpenClash forwards all DNS requests to the configured DNS server, including those from the DDNS server. This prevents the DDNS server from obtaining your device's latest IP address, causing external access to fail.

There are two methods to resolve this issue:

1 Method 1: Switch to Redir-Host Mode

In Redir-Host mode, OpenClash will send all DNS requests to the configured DNS server, but will return the DDNS server's domain name resolution request directly, preventing it from being forwarded to the configured DNS server.

Steps:

  1. Open the OpenClash WebUI and go to the "Plugin Settings" page.
  2. Click the "OpenClash" tab.
  3. Select "Redir-Host" from the "Working Mode" drop-down box.
  4. Click the "Save" button.
i Switching to Redir-Host mode changes how DNS is handled globally. This is the more comprehensive fix.

2 Method 2: Disable Local DNS Hijacking

Disabling the Local DNS Hijacking function will prevent OpenClash from forwarding all DNS requests to the configured DNS server, which stops the DDNS server's requests from being forwarded incorrectly.

Steps:

  1. Open the OpenClash WebUI and go to the "Plugin Settings" page.
  2. Click the "DNS Settings" tab.
  3. Uncheck the "Local DNS hijacking" checkbox.
  4. Click the "Save" button.
i This method keeps the fake-IP mode active for other traffic while only disabling DNS hijacking for DDNS. Choose the approach that best fits your setup.
i We hope this helps resolve your DDNS issue with OpenClash. If you have any other questions, feel free to reach out to our support team.
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.