Insights
OPNsense Dynamic DNS: Set up and check your hostname
Set up OPNsense Dynamic DNS with os-ddclient, verify that your hostname points to the expected IP address, and check inbound access separately.

On this page
OPNsense uses the os-ddclient pluginOpens in a new tab to keep a hostname pointed at your connection's changing Internet Protocol (IP) address. Install the plugin, then add your provider and hostname under Services > Dynamic DNS > Settings. Choose how OPNsense checks your address, then confirm that the published record matches it.
In short:
- Use
os-ddclient. It updates your hostname's address when it changes. - Check the published record. It should match the public address you intend to use.
- Check access separately. A correct record doesn't let traffic through your firewall.
When a changing IP needs a steady name
Dynamic Domain Name System (DDNS) updates a provider's record when your connection gets a new IP address. If you already use a hostname to reach a service on that connection, you can keep using the same name after the address changes. If your connection has a fixed address, a regular DNS record can point to it without a DDNS updater.
How to set up the updater
- Install the plugin. Start with a hostname you manage and an account with a supported DNS provider. In OPNsense, go to System > Firmware > Plugins, search for
os-ddclientand install it. - Enable the service and choose a backend. In OPNsense, open Services > Dynamic DNS > Settings > General settings and turn on Enable. The backend is the software that sends updates. Despite its name, the plugin can use either the native backend or
ddclient. Prefer the native backend if it supports your provider. - Add an enabled account. Under Accounts, turn on Enabled and select your provider under Service. Enter the provider's required credentials, the Zone if required, and the full name under Hostname(s). For example, for Cloudflare, create an API token with Zone → DNS → Edit permission and restrict Zone Resources to Include → Specific zone → example.com. Enter the literal
tokenas Username and put that API token in Password. Set Zone toexample.com, not the zone ID, and Hostname(s) tohome.example.com. - Choose how to detect the address. Set Check ip method to Interface if the interface you select under Interface to monitor holds the address you want to publish. Otherwise, use an external check, which reports the address the checking service sees. With an external check, Interface to monitor selects the interface OPNsense uses to contact that service. Keep Force SSL enabled so checks and updates use encrypted HTTPS connections.
- Use separate accounts for both address families. If you're updating Internet Protocol versions 4 and 6 (IPv4 and IPv6), add one account entry for each. Set Check ip method to an IPv4 checking service for the IPv4 account and an IPv6 checking service for the IPv6 account. Turn on Allow IPv6 in General settings to let the service detect and update IPv6 addresses.
How to tell if the record updated
- Wait for the updater to check. Give OPNsense time to run through the Interval set in General settings.
- Compare the published record with the expected address. Check the provider's record for the exact hostname and address family you configured. Compare IPv4 with IPv4 or IPv6 with IPv6. If the record matches, the name points where you intended. If the service still won't connect, move on to reachability.
- Check the detected address first if the record differs. Review the OPNsense updater log and check what address your selected method returns. If it's the wrong address, revisit Check ip method and Interface to monitor.
- Check the account if detection is right but the update fails. Check the provider credentials, zone and hostname on the enabled account. Turn on Verbose in General settings if you need a more detailed log.
Why the name can work when the connection doesn't
A correct public DNS record tells clients which address to try. It doesn't open a port or grant access to the service. If the address is reachable, check that the intended service is listening and that the firewall allows the connection.
An external check can find the right public IPv4 address even when your wide area network (WAN) interface has a carrier-shared addressOpens in a new tab. If the published record matches that public address, leave DDNS alone. Carrier-shared address space isn't globally routableOpens in a new tab, so ask your internet provider whether it offers inbound IPv4 access before changing local firewall rules.
Where doxx.net fits. If only your devices or authorized agents need access, doxx.net runs a private network on its own DNS root, IP space and hardware. It's a separate option from updating a public record in OPNsense, and you can download the appOpens in a new tab to connect a device.