This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net). | |
# | |
# The record will be updated with the IP address that originates the request. | |
# | |
# Usage | |
# ----- | |
# | |
# Create config file `/etc/he-dns-update.conf`: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
hostname=$1 | |
device=$2 | |
file=$HOME/.dynv6.addr6 | |
[ -e $file ] && old=`cat $file` | |
if [ -z "$hostname" -o -z "$token" ]; then | |
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RouterOS dynamic DNS Update Script for he.net | |
# ============================================= | |
# make global to preserve IP and IPv6 address across script executions | |
:global ipddns | |
:global ipv6ddns | |
:local ddnshost "myhost.example.com" | |
:local ddnspass "MY_SECURE_PASSWORD" | |
:local waninterfacev4 "V4_INTERFACE_NAME" # Interface to retrieve WAN IPv4 address from (i.e. pppoe-out1) |