#!/bin/sh DOMAIN="" # Your domain DEVICE="" # Your device (eth0, wlan0) PASSWORD="" # Your has from afraid.org ### No changes beyond this line SERVER="http://freedns.afraid.org/dynamic/update.php?$PASSWORD&address=" INET6_OLD=$(nslookup -q=AAAA $DOMAIN | grep AAAA | awk -F "address " '{print $2}') INET6_NEW=$(ip -6 addr show dev $DEVICE | grep inet6 | grep global | awk '$1 == "inet6" {gsub(/\/.*$/, "", $2); print $2}') if [ "$INET6_OLD" = "$INET6_NEW" ]; then echo "Not changed => Not updating" else echo "Changed from '$INET6_OLD' to '$INET6_NEW'" curl -k $SERVER$INET6_NEW fi
Tags
Recent Comments
- Markus on IPv6 und der Port Forward am Genexis Router
- Javier on Let your page move arround
- Tom on IPv6 und der Port Forward am Genexis Router
- Ludger Tempelmann on IPv6 und der Port Forward am Genexis Router
- Hafid on The Android-Back-Button stops a Cordova App
- Christian on Ein "fast" neues Auto
- hein on Ein "fast" neues Auto