I hereby claim:
- I am mambrus on github.
- I am mambrus (https://keybase.io/mambrus) on keybase.
- I have a public key ASAgtkC7XqU-K44JDqF2lD5fQD85fF4De-25kJfmjkcOuQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
IFNAME=${1} | |
NIC_IPNR=$(ifconfig | \ | |
grep $IFNAME -A3 | \ | |
grep "inet addr" | \ | |
cut -f2 -d":" | \ | |
cut -f1 -d " ") | |
LNET=$(echo $NIC_IPNR | cut -f1-3 -d".").0 |
#! /bin/bash | |
# This script updates a dynamic-DNS record for a specific NIC of your host. | |
# Script is made for freedns.afraid.org but should in principle work for | |
# other providers as well that allow DNS updates by simply loading a | |
# specific URL. | |
# | |
# Usage: dyndns_update.sh IF SHA1 | |
# | |
# As this script is meant to be run from cron, it will be fairly silent, | |
# except when something goes wrong in an unexpected way or when a change of |