Skip to content

Instantly share code, notes, and snippets.

@n1trux
Created October 15, 2017 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1trux/3a21d3ed532cfa171bd1128403f4b117 to your computer and use it in GitHub Desktop.
Save n1trux/3a21d3ed532cfa171bd1128403f4b117 to your computer and use it in GitHub Desktop.
Bash update global IPv6 with afraid DNS
#!/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