Skip to content

Instantly share code, notes, and snippets.

@Rutenioum
Rutenioum / dns.he.net.sh
Created February 15, 2022 17:32 — forked from qinghon/dns.he.net.sh
he.net ddns auto update
#!/bin/bash
nic="eth0"
export LastIP=`/bin/cat /var/log/ipv6addr`
export NowIP=`ip -o -6 addr show dev $nic scope global |head -n 1 | /bin/sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'`
password="you password"
hostname="nas.d.youdomain.com"
if [ -z "$NowIP" ]
then
@Rutenioum
Rutenioum / he-ddns.sh
Created February 15, 2022 17:31 — forked from tx0dev/he-ddns.sh
Updater for Hurricane Electric for their Dynamic dns service. IPv6 updates are NOT enable at the moment.
#!/bin/bash
# HOSTS
HOSTS="example.com foo.example.com"
# HOSTS PASSWORD
# Because I'm lazy, it needs to be the same for all hosts
HOST_KEY="YOUR_PASSWORD"
# Get Current IPs