Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - viniciusxp

#1
23.1 Legacy Series / Re: ddclient and ClouDNS
May 09, 2023, 04:02:18 PM
I could not make it work, so I've solved with a cronjob approach.

It is not the optimal solution but until the issue is fixed it will do what I need. I am not sure if it is a viable solution for your case, but here is how I've done it.
   
Login via ssh, drop to the shell and create 2 files:

/usr/local/opnsense/service/conf/actions.d/actions_cloudns.conf

with contents:

[sync]
command:perl /usr/local/bin/cloudnsupdate
parameters:
type:script
message:Update Cloudns
description:Cloudns Update


and
/usr/local/bin/cloudnsupdate

This last one is the perl script you can download from cloudns (dynamic-url-perl.pl), I've renamed it to cloudnsupdate. Make sure to make it an executable with chmod +x /usr/local/bin/cloudnsupdate


After this you can reload configd:
service configd restart

Now you can exit ssh and will be able to select on the web interface:

System:Settings:Cron

+ (Add )

You should be able to see on Command an option Cloudns Update, as you can see on the attachment.

I asked Cron to run it once a day.