Skip to content

Instantly share code, notes, and snippets.

@beigna
Created October 20, 2019 19:06
Show Gist options
  • Save beigna/86b71ebf931bd2a773ba21e8595e090d to your computer and use it in GitHub Desktop.
Save beigna/86b71ebf931bd2a773ba21e8595e090d to your computer and use it in GitHub Desktop.
Free DNS Afraid update utility
#!/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