Wallace
Occasional Visitor
I am sharing a shell script to use the free DDNS service for your ASUSwrt device.
The available DDNS hostname is [your-hostname].asuscomm.com
This solution will work with Access Point (AP) mode, when the web ui does not allow DDNS configuration.
DDNS update script:
update-ddns-asuswrt.sh
The available DDNS hostname is [your-hostname].asuscomm.com
This solution will work with Access Point (AP) mode, when the web ui does not allow DDNS configuration.
DDNS update script:
update-ddns-asuswrt.sh
- Enable SSH on ASUSwrt device.
- Update [your-hostname] with your preferred hostname in update-ddns-asuswrt.sh
- Use scp to upload update-ddns-asuswrt.sh to ASUSwrt device, execute this from your computer (macbook) while connected to ASUSwrt device:
Code:scp update-ddns-asuswrt.sh [asus-device-ip]:/jffs/
- SSH to ASUSwrt device, execute this from your computer (macbook) while connected to ASUSwrt device:
Typically [username] is admin.
Code:ssh [username]@[asus-device-ip]
- For Windows users, see Using PuTTY SSH
- Execute the following commands on the ASUSwrt device over the SSH connection:
Code:cru a 1 "*/5 * * * *" /jffs/update-ddns-asuswrt.sh
- Verify the cronjob is created:
Code:cru l
Output:
Code:*/5 * * * * /jffs/update-ddns-asuswrt.sh #1#
- This cronjob runs every 5 minutes, check the logfile to monitor the cronjob:
Code:tail -f /tmp/var/log/syslog.log
- Optional: If cronjob is not running, reload the crond process:
Code:echo admin > /tmp/var/spool/cron/crontabs/cron.update
Last edited: