Created
October 15, 2017 17:45
-
-
Save n1trux/3a21d3ed532cfa171bd1128403f4b117 to your computer and use it in GitHub Desktop.
Bash update global IPv6 with afraid DNS
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 | |
globalIPv6=`ip addr show dev enp0s25 | sed -e 's/^.*inet6 \(2[^ ]*\)\/.*$/\1/;t;d'` | |
echo "global IPv6 is $globalIPv6" | |
wget -q --read-timeout=0.0 --waitretry=5 --tries=400 --background https://freedns.afraid.org/dynamic/update.php?KEYHERE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment