Created
October 20, 2019 19:06
-
-
Save beigna/86b71ebf931bd2a773ba21e8595e090d to your computer and use it in GitHub Desktop.
Free DNS Afraid update utility
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 | |
iface='pppoe0' | |
afraid='-- GET IT AT https://freedns.afraid.org/dynamic/ --' | |
ip=$(/sbin/ip -o -4 addr list $iface | awk '{print $4}' | cut -d/ -f1) | |
url="https://freedns.afraid.org/dynamic/update.php?$afraid&address=$ip" | |
curl "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment