OPNsense handles Dynamic DNS through the os-ddclient plugin, which supports any custom DynDNS2 provider. With DNS Beacon your firewall stays reachable under a permanent hostname even when your WAN IP changes. Here's the setup.
Services → Dynamic DNS → Settings
Install the os-ddclient plugin first (System → Firmware → Plugins) and pick the Custom service — it sends standard DynDNS2 updates to /nic/update.
Create a free DNS Beacon account, add a hostname and generate an API key — then come back and finish the setup above.
Create free account