OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: juantxorena on February 12, 2023, 07:43:35 PM

Title: os-ddclient does not update IPv4
Post by: juantxorena on February 12, 2023, 07:43:35 PM
Hello,

I have a domain with cloudflare, and I'm trying to update the dynamic IPs (both 4 and 6), but only IPv6 gets updated. I have tried all the IP check methods, with wildcard, without wildcard, a single entry, one entry for IPv4 and another for IPv6. It simply doesn't work. I attach a screenshot of my latest config attempt.

The old deprecated dyndns plugin works perfectly (and it has more options, a widget, actually works, and it's in general better).

Another thing is that the new ddclient occasionally stops working, and it's only fixed by restarting.
Title: Re: os-ddclient does not update IPv4
Post by: skool on February 14, 2023, 10:56:29 AM
Hello,
It's the way ddnsclient works...
It merges all given configurations with the same hostname, so if you creates 2 rules for the same hostname (1 for ipv4 and 1 for ipv6), the config is merged when loaded.

I tried to made a patch on the opnsense plugin, to use the right way ddclient works (set `usev4` and `usev6` config instead of `use`)
It works on my config, but I absolutely dont know how to create a real patch on the repo (I patched the files directly on my router...)

https://github.com/ddclient/ddclient/blob/master/ddclient.in#L6162
Title: Re: os-ddclient does not update IPv4
Post by: mogu on March 26, 2023, 05:58:35 PM
Quote from: juantxorena on February 12, 2023, 07:43:35 PM
Hello,

I have a domain with cloudflare, and I'm trying to update the dynamic IPs (both 4 and 6), but only IPv6 gets updated. I have tried all the IP check methods, with wildcard, without wildcard, a single entry, one entry for IPv4 and another for IPv6. It simply doesn't work. I attach a screenshot of my latest config attempt.

The old deprecated dyndns plugin works perfectly (and it has more options, a widget, actually works, and it's in general better).

Another thing is that the new ddclient occasionally stops working, and it's only fixed by restarting.

I had the same problem as you on Cloudflare as well. Instead I made some modifications to ddclient (3.10) enhanced it to update as soon IP changed and skip DNS update if record on Cloudflare matches current WAN IP.