Insights
OpenWrt dynamic DNS: Setup and checks in LuCI
Set up OpenWrt dynamic DNS in LuCI to keep your hostname current, then verify the DNS record and test service access separately.

On this page
OpenWrt uses ddns-scriptsOpens in a new tab to keep a hostname pointed at your changing internet address. Dynamic Domain Name System (DDNS) updates the record with your DNS provider so you can keep using the same name. Install ddns-scripts and luci-app-ddns, then set up and enable the updater under Services → Dynamic DNS in LuCI, OpenWrt's web interface.
In short:
- Decide who needs access. Use public DDNS for clients that need a public name that follows your address.
- Publish the right address. Choose the address source that matches what you want in the record.
- Check the record first. Confirm the address before testing whether clients can reach your service.
Your address changes, but your hostname stays the same
Say you use home.example.com for a service at home. When your connection gets a new Internet Protocol (IP) address, OpenWrt's updater sends it to your DNS provider. The address in the record changes, but people still use home.example.com.
Who needs to reach your service?
Use public DDNS if visitors to your site need a public name that follows your changing address. If only your approved devices need to reach an admin page, check whether a private name and access rules meet that need before publishing a public record. Keep router administration off the public internet.
Publishing a name doesn't open a path to the service or grant anyone permission to connect. Detecting an external address tells you what address to publish, not whether inbound traffic can reach you through another router.
Set up the updater in LuCI
1. Back up your configuration and install the packages. On an OpenWrt router you administer, save a configuration backup before you make changes. In LuCI, open System → Software and select Update Lists. Install ddns-scripts and luci-app-ddns, plus any package your provider requires.
2. Set up an update instance. Refresh LuCI and open Services → Dynamic DNS. Edit myddns_ipv4 or myddns_ipv6, or create your own instance. Use a separate instance for each hostname and address familyOpens in a new tab. If the same name needs both Internet Protocol version 4 (IPv4) and version 6 (IPv6), configure both instances.
3. Enter your provider details. Select a supported provider and enter the update credentials it issued. Set Lookup Hostname to the name you've already registered, such as home.example.com. OpenWrt checks that name to see whether an update is needed. Domain is the name sent in the update request, usually the same hostname.
4. Choose the address source. Read the wide area network (WAN) interface if it holds the address you want to publish. If OpenWrt sits behind another router and its WAN interface doesn't hold the public address, choose the web address source to detect it. The separate Interface field controls which network brings up the updater, such as wan or wan6. It doesn't tell the updater which address to publish.
5. Use encrypted updates with certificate validation. Enable HTTPS (Hypertext Transfer Protocol Secure) for updates and keep certificate validation on. For HTTPS support, install wget-ssl with ca-certificates, or curl with ca-bundle.
6. Enable and save the instance. Check Enabled, then select Save & Apply. On the Dynamic DNS page, check the Information tab. If it shows DDNS Autostart disabled, select Start DDNS. Confirm that your instance shows Running in the Services table.
Check the update before you test the service
Have your hostname, record type and intended IP address ready. For a public service, have a device on a separate network ready for the last check.
1. Check the updater status and log. In LuCI, open Services → Dynamic DNS and check your instance's Status in the Services table. To read its log, edit the instance, enable Log to file under Advanced Settings if needed, and select Save & Apply. Reopen the instance and use Log File Viewer to read the log. If the update fails, check the selected provider and the credentials it issued. A running updater alone doesn't prove the record changed.
2. Compare the record with the address you meant to publish. A public DNS lookup can confirm the address in a direct record. For example, a proxied Cloudflare hostname returns a proxy address in a public lookup, so compare the intended address with the record stored at the provider instead. If the record is old or wrong, check the update status, the address source and the hostname and record type you're updating.
3. Test the service from the network that needs access. Use the hostname to open the service from outside your home network if it's meant to be public. The check passes when the updater shows no outstanding error, the record has the intended address and the service responds from that network. If only the service check fails, check whether the service is running and whether the network path allows the connection instead of changing your update credentials.
Where doxx.net fits. doxx.net is a private network with its own DNSOpens in a new tab and controls over what authorized agents can reach. If private access meets your needs, you can download doxx.netOpens in a new tab to connect a device or agent.