Skip to content

Instantly share code, notes, and snippets.

@hansdg1 hansdg1/ddnsupdate
Created Nov 5, 2016

Embed
What would you like to do?
Dynamic DNS Update script for EdgeRouter Lite
#!/bin/bash
# Author: Hans Guthrie
# Date: 11/5/2016
# Purpose: Updates dynamic dns (ddns) on eth0.
# This is needed because our current ddns supplier, noip, expires your hostname after 28 days of inactivity.
# Surprisingly there's no better way to accomplish this than to use a cron job.
# Takes advantage of the operational command wrapper that is documented here:
# https://help.ubnt.com/hc/en-us/articles/204976164-EdgeMAX-How-to-run-operational-mode-command-from-scripts-
# Load the operational command environment variables
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper
# Update the ddns on eth0
$run update dns dynamic interface eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.