steelskinz
Regular Contributor
Hi there,
i tried to run manually ddns-start but i always got this error :
Line 23 is the last one and is empty.
I used the script provided here https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#dns-o-matic and also tried with @ instead of %40. Same result
Other error if i try duckdns script :
Was anyone in the same situation ? Thanks.
i tried to run manually ddns-start but i always got this error :
ddns-start: line 23: syntax error: unexpected end of file (expecting "then")
Line 23 is the last one and is empty.
I used the script provided here https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#dns-o-matic and also tried with @ instead of %40. Same result
#!/bin/sh
#DNS-O-Matic
USERNAME=XXX%40XXX.XXX
PASSWORD=XXXXXXXX
HOSTNAME=all.dnsomatic.com
# Should be no need to modify anything beyond this point
/usr/sbin/curl -k --silent "https://$USERNAME:$PASSWORD@updates...ME&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG&myip=" > /dev/null
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
Other error if i try duckdns script :
#!/bin/sh
#DuckDNS
SUBDOMAIN="xxxxxx"
TOKEN="xxxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"
curl --silent "https://www.duckdns.org/update?domains=$SUBDOMAIN&token=$TOKEN&ip=" >/dev/null 2>&1
if [ $? -eq 0 ];
then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
Line 5 is curl --silent etc...ddns-start: line 5: redir error
Was anyone in the same situation ? Thanks.
Last edited: