OPNsense Forum

English Forums => General Discussion => Topic started by: OPNSense_toq on March 20, 2025, 04:57:52 PM

Title: Configuring ddclient on OPNSense for dynamic DNS
Post by: OPNSense_toq on March 20, 2025, 04:57:52 PM
Using os-ddclient 1.2.7 on OPNSense 25.1.3 to dynamically update my IP on my domain at Porkbun getting error

FAILED: {"status":"ERROR","message":"Invalid domain."})

Using pk1 and sk1 from the API as username password. Hostname is set correctly.

I emailed Porkbun and they blamed ddclient saying it hasn't been updated to the new API, which from what I can tell it has been.

Any suggestions?

Yes, I tried os-caddy 1.8.3 but I get "unable to lookup current IPs from DNS records" in the logs.
Title: Re: Configuring ddclient on OPNSense for dynamic DNS
Post by: AhnHEL on March 20, 2025, 10:02:10 PM
I use Porkbun and ddclient and I'm not having any issues with it; working properly.

Do you already have an A record in your DNS Records for your domain within Porkbun?

In Opnsense, in the ddclient General Settings are you using the ddclient backend or the native?  Should be ddclient.

Check IP Method is Interface
Interface to monitor is WAN
Force SSL checked.

Hope this helps.
Title: Re: Configuring ddclient on OPNSense for dynamic DNS
Post by: OPNSense_toq on March 20, 2025, 10:37:17 PM
That fact that it is working for you with Porkbun does help.  I double checked all my settings and everything seems correct but still getting the same error. I will email porkbun again.
Title: Re: Configuring ddclient on OPNSense for dynamic DNS
Post by: Stitch10925 on June 02, 2025, 01:19:20 PM
https://github.com/opnsense/plugins/issues/3719

Try adding "on-root-domain=yes" directly to the ddclient config (should be at: /usr/local/etc/ddclient.conf)
Title: Re: Configuring ddclient on OPNSense for dynamic DNS
Post by: AhnHEL on June 03, 2025, 10:37:44 PM
To clarify, I am using a sub-domain and not seeing an issue but apparently if you use a root domain then there is a setting not yet implemented within the opnsense plugin that will cause an issue.