Setup Duck DNS Updater on Raspberry Pi

Raspberry Pi Logo

Setup Duck DNS Updater on Raspberry Pi

Create Duck DNS Account

Go over to https://www.duckdns.org/ and signup for an account or login if you already have one.
Annoyingly the only way to sign is is via Persona, Twitter, Github, Reddit or Google.
They do not offer a DuckDNS account and it is not made obvious.
It is recommended to create a new account just for this service alone and not use it for anything else.

Create a Duck DNS Sub Domain

Over at duckdns.org create a new subdomain xxx.duckdns.org.

You will be provided with a token. This will be needed by the sh script to update the record

Create Script

mkdir duckdns
cd duckdns
nano updateduckdns.sh
echo url="https://www.duckdns.org/update?domains=[YOUR_DOMAIN]&token=[YOUR_TOKEN]&ip=" | curl -k -o ~/duckdns/duck.log -K -

Example

echo url="https://www.duckdns.org/update?domains=paulligocki@duckdns.org&token=00000000000000000000000&ip=" | curl -k -o ~/duckdns/duck.log -K -

Set Permissions

chmod 700 updateduckdns.sh
crontab -e

Create Schedule

*/5 * * * * ~/duckdns/updateduckdns.sh >/dev/null 2>&1
,