Last active
July 10, 2023 03:11
-
-
Save jamietre/5b233567d565fd0322ddd5b9ee7f0c84 to your computer and use it in GitHub Desktop.
Howto - using duckdns with Synology RT2600AC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DuckDNS] | |
modulepath=/sbin/duckddns | |
queryurl=duckDNS.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
duckdns="$(wget -O - https://www.duckdns.org/update?domains=${3}\&token=${2})" | |
case $?:$duckdns in | |
0:OK) | |
echo good | |
;; | |
0:KO) | |
echo badauth | |
;; | |
5:) | |
echo badagent | |
;; | |
8:) | |
echo badresolve | |
;; | |
*) | |
echo 911 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Quick and Dirty Way one-liner is outdated unfortunately and isn't pointing to the latest raw duckddns. Here's the updated one-liner.
wget https://gist.githubusercontent.com/jamietre/5b233567d565fd0322ddd5b9ee7f0c84/raw/6305de66e86f78c1edd45c756a9542ce990a5e30/ddns_provider.conf -O ->> /etc.defaults/ddns_provider.conf && wget -O /sbin/duckddns https://gist.githubusercontent.com/jamietre/5b233567d565fd0322ddd5b9ee7f0c84/raw/5d978ecde4e2acfb5116fc1bf16b36d2730e79a9/duckddns && chmod +x /sbin/duckddns