It seems that I would need some help getting DDNS to work with AsusWRT 380.65. I am using an Asus RT-AC68U router, which is behind another router (and therefore does not get an external IP itself). I am using http://www.dynu.com as the dynamic DNS service.
Dynu.com lets the hostname be updated by just going to the following URL:
https://api.dynu.com/nic/update?hostname=xxx&myip=xxx&password=xxx
where xxx are the respective values.
In AsusWRT, I have enabled JFFS custom scripts and configs. I have copied a ddns-start script to /jffs/scripts/ddns-start (using WinSCP). In WAN -> DDNS I have enabled the DDNS Client (Server: Custom).
The ddns-start script is as follows (all done on the basis of AsusWRT Wiki examples – dnsomatic.com is used to get the actual external IP address, according to an example that I found in AsusWRT wiki):
However, the DDNS fails in practice and in the system log I am getting this every 30 seconds:
Note: 192.168.3.100 is the IP address of Asus RT-AC68U in the LAN behind the other router.
Thanks anyone who can tell me what I have been doing wrong.
Dynu.com lets the hostname be updated by just going to the following URL:
https://api.dynu.com/nic/update?hostname=xxx&myip=xxx&password=xxx
where xxx are the respective values.
In AsusWRT, I have enabled JFFS custom scripts and configs. I have copied a ddns-start script to /jffs/scripts/ddns-start (using WinSCP). In WAN -> DDNS I have enabled the DDNS Client (Server: Custom).
The ddns-start script is as follows (all done on the basis of AsusWRT Wiki examples – dnsomatic.com is used to get the actual external IP address, according to an example that I found in AsusWRT wiki):
Code:
#!/bin/sh
#
# https://www.dynu.com/en-US/DynamicDNS/IP-Update-Protocol
HOSTNAME=xxx.freeddns.org
PASSWORD=xxx
IP=$(wget -O - -q http://myip.dnsomatic.com/)
URL="https://api.dynu.com/nic/update?hostname=${HOSTNAME}&myip=${IP}&password=${PASSWORD}"
ANSWER=$(wget -q -O - "$URL")
if [ "$ANSWER" == "good" ] || [ "$ANSWER" == "nochg" ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
However, the DDNS fails in practice and in the system log I am getting this every 30 seconds:
Code:
Jun 19 23:02:39 watchdog: start ddns.
Jun 19 23:02:39 rc_service: watchdog 444:notify_rc start_ddns
Jun 19 23:02:39 custom script: Running /jffs/scripts/ddns-start (args: 192.168.3.100)
Jun 19 23:03:09 watchdog: start ddns.
Jun 19 23:03:09 rc_service: watchdog 444:notify_rc start_ddns
Jun 19 23:03:09 custom script: Running /jffs/scripts/ddns-start (args: 192.168.3.100)
Note: 192.168.3.100 is the IP address of Asus RT-AC68U in the LAN behind the other router.
Thanks anyone who can tell me what I have been doing wrong.
Last edited: