help with dynamicDNS and cloudflare DNS

Started by sajata, April 20, 2025, 10:02:32 PM

Previous topic - Next topic
i have installed the latest openSense Versions
OPNsense 25.1.5_5-amd64
FreeBSD 14.2-RELEASE-p2
OpenSSL 3.0.16

no pending updates, every thing works great including OpenVPN, i have verizon FiOS which changes your IP every couple of months so i want to use the DynamicDNS service to keep it up to date.  My DNS provider is cloudflare, i have installed DDclient and configured it according it to the documentation.  but the log file is confusing.

2025-04-20T15:45:28-04:00   Notice   ddclient   FAILED: updating xxx: Cannot set IPv4 to 173.62.205.19 No 'A' record at Cloudflare   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: {"result":[],"success":true,"errors":[],"messages":[],"result_info":{"page":1,"per_page":100,"count":0,"total_count":0,"total_pages":1}}   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE:   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: server: cloudflare   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: set-cookie: _cfuvid=gjHFdN.c1YDwuHzv3Bz7T5LqF_k2drAQltypE7.kC_0-1745178328513-0.0.1.1-604800000; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: set-cookie: __cf_bm=GG3EF_bsdbiTrukiWmLyQD1hrT4KkHwmV0n9v3PKb1E-1745178328-1.0.1.1-U990b41TOHQWbypo83Nd8W5Beiy.rrhwhSobXhkLHdrCYmc8n1qvbw3OGkW1sZA7Lz6tutWqip_a0xPelPGeXsTiwk61r.zGTAESvvtyz.k; path=/; expires=Sun, 20-Apr-25 20:15:28 GMT; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: cf-auditlog-id: 019654bb-fd34-71f0-b709-d2430276f63e   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: api-version: 2025-04-20   
2025-04-20T15:45:28-04:00   Notice   ddclient   RECEIVE: vary: Accept-Encoding

its says that the reip request was successful but it also says no A record found for xxx
here is my cloudflare a records
;; A Records
chestersprings.taosgroup.org.   1   IN   A   173.62.205.19 ; ' cf_tags=cf-proxied:false
taosgroup.org.   1   IN   A   173.62.205.55 ; cf_tags=cf-proxied:false
xxx.taosgroup.org.   1   IN   A   1.1.1.1 ; cf_tags=cf-proxied:false
it looks like my user and access key to cloudflare seems to be configured correctly.  if you can tell me how to dump by ddclient config in text i can also supply that.


thanks for any help....





I have the same problem with OPNSense 25.4.1, and ddclient version 1.27_2

Anybody know how to solve this ?   

Just fixed it for me,  it seems the cloudflare plugin does not accept '@' for the domain A record, just changed it to xxxxxx.com and xxxxxx.eu instead of the '@' and the updates happened.  So I guess that you need to provide the full DNS entry to work with cloudflare.