Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Dynamic DNS configuration

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,103
I use duckdns.org for dynamic DNS. To update it, I have a simple cron job:
Code:
/usr/local/bin/curl https://www.duckdns.org/update/<my-subdomain>/<token>

Simply going to that page updates the IP. I noticed that duckdns is one of the providers available in Services > Dynamic DNS, and thought I would change to using that. But there are so many extra fields to fill out, and it seems like they are wrong fields, I can't figure out how to make it work. Yes, I've read the user guide.

Has anyone gotten this to work with duckdns? Or have a clue how to make it work?
 

OliverPA

Cadet
Joined
Feb 29, 2016
Messages
3
Via trial and error: All you need to do is enter your domain name (with or without .duckdns.org) and your duckdns token in username.
You can check /var/log/cron for the curl log entry that's running the update to make sure it's working :smile:
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,103
Thanks. First time I tried that, the console showed that it tried the update and failed. Nothing at all in the cron log.
Then I tried turning it off and on again, set it to 30 second intervals to test it. It's not even showing in the console, let alone the cron log.
Here's what I have:
Screen Shot 2020-12-18 at 7.17.32 AM.png
 

esaporski

Cadet
Joined
Dec 12, 2021
Messages
1
Bumping this thread... I couldn't make it work either. Had to setup some Cron Jobs to update my public IP address on DuckDNS.
I'm runnign the curl command every 5 minutes (*/5 * * * *):
Code:
curl https://www.duckdns.org/update/<DOMAIN_NAME>/<TOKEN>
 

pverona

Cadet
Joined
Sep 26, 2022
Messages
1
I worked it out for my TrueNAS Scale deployment through the UI.

As @Glorious1 said, you go to Services -> Dynamic DNS, select duckdns.org as the provider. You can check both the `CheckIP Server SSL` and `SSL` boxes. Then for the `Username` field, enter the token you got from DuckDNS and for password you can enter anything (it doesn't matter) so put `changeme` or `nopassword` or something

Once you hit `Save` you should be able to activate the service and select the `Start Automatically` box. If you have any further issues, you can look at the logs by SSHing into the server and looking at `/var/log/user.log` as you activate the service. Also, it looks like that page is just a wrapper around this configuration file (https://github.com/troglobit/inadyn/blob/master/examples/duckdns.conf) which will be on your system under `/etc/inadyn.conf` so you can play around with that too until it works
 
Top