Skip to content

Configure Dynamic DNS on OPNsense

Use the OPNsense Dynamic DNS plugin to send your public IPv4 address to DNSbun. Have your DNSbun installation key ID and saved installation password ready.

Enable Dynamic DNS

  1. Open System → Firmware → Plugins and install os-ddclient.
  2. Open Services → Dynamic DNS → Settings → General Settings.
  3. Turn on Enable. If the Backend setting is available, select native. Save the settings.

Add a DNSbun account

On the Accounts tab, add an entry with these settings.

Field Value
Enabled On
Description DNSbun
Service Custom
Protocol Custom GET
Server https://update.dnsbun.com/nic/update?hostname=__HOSTNAME__&myip=__MYIP__
Username Your DNSbun installation key ID
Password Your saved DNSbun installation password
Hostname(s) all.dnsbun.com for all configured destinations, or a specific configured hostname such as home.example.com
Check ip method ipify-ipv4

Enter __HOSTNAME__ and __MYIP__ literally. OPNsense substitutes the configured hostname and detected address when it sends the HTTPS request.

Verify the update

Save and apply the account settings. After the next check interval, confirm that the account shows your public IPv4 address and that the DNSbun console shows an incoming update. If the update is missing, check the Dynamic DNS log for IP detection or authentication errors.

References