1
23.1 Legacy Series / Re: ddclient and ClouDNS
« on: 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:
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
After this you can reload configd:
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.
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:
Code: [Select]
[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
Code: [Select]
chmod +x /usr/local/bin/cloudnsupdate
After this you can reload configd:
Code: [Select]
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.