Updating dynu with Truenas Scale

Hi, does anyone have any experience of updating dynu.com ddns using TrueNAS scale. My wireless router is a standard BT Home Hub that does not have ddns updating built in.

I have started following this tutorial. My plan was to update it using a curl command run from a cron job. I have managed to get it to work manually from typing it into the shell. Of course one of the challenges is getting my external IP address embedded into the line so that it doesn’t just update it with the same IP all the time! My next step was to write some sort of bash script to get the external IP, concatenate it with the curl command and then run it with cron.

The working curl line is as follows (with the sensitive bits removed):

https://api.dynu.com/nic/update?myip=xxx.xxx.xxx.xx&myipv6=xxxx:xxxx:a:8a::f4&username=userName&password=MD5_passWord

Am I over complicating this? Is there an easier way? If I’m on the right track does anyone have an example?

Many thanks, Edward.

Install the TrueNAS Charts app “ddns-updater” which does exactly what you want.

1 Like