Renzor
New Around Here
Hello,
My router is in access point mode and I cannot set it via GUI to custom DDNS.
How can I do this from terminal?
I read the wiki and I understand that I must create a ddns-start script.
I was thinking to add this lines, that I also found here : https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#dns-o-matic and modified to get the ip via wget.
Then add this script to wan-start in jffs scripts.
Is this the right path to enable ddns updates manually?
Thank you.
My router is in access point mode and I cannot set it via GUI to custom DDNS.
How can I do this from terminal?
I read the wiki and I understand that I must create a ddns-start script.
I was thinking to add this lines, that I also found here : https://github.com/RMerl/asuswrt-merlin/wiki/DDNS-Sample-Scripts#dns-o-matic and modified to get the ip via wget.
Code:
#!/bin/sh
IP=$(wget -O - -q http://myip.dnsomatic.com/)
# Update the following variables:
USERNAME=dnsomatic_username
PASSWORD=dnsomatic_password
HOSTNAME=all.dnsomatic.com
# Should be no need to modify anything beyond this point
/usr/sbin/curl -k --silent "https://$USERNAME:$PASSWORD@updates.dnsomatic.com/nic/update?hostname=$HOSTNAME&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG&myip=$IP" > /dev/null
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
Then add this script to wan-start in jffs scripts.
Is this the right path to enable ddns updates manually?
Thank you.
Last edited: