skywayskase
Occasional Visitor
I keep getting a "ddns: Custom ddns update failed" error when using the script provided for Google Domains in the wiki. I made sure to set the correct permissions as outline in the User Scripts section of the wiki
(chmod a+rx /jffs/scripts/*). I'm not really sure of what I'm doing, any help or insight would be appreciated. I just can't figure out what I'm missing.
(chmod a+rx /jffs/scripts/*). I'm not really sure of what I'm doing, any help or insight would be appreciated. I just can't figure out what I'm missing.
Code:
#!/bin/sh
set -u
# args: username password hostname
google_dns_update() {
case $(curl -s https://$1:$2@domains.google.com/nic/update?hostname=$3) in
good|nochg*) /sbin/ddns_custom_updated 1 ;;
*) /sbin/ddns_custom_updated 0 ;;
esac
}
google_dns_update ProvidedUserName ProvidedPassword Example.com