Created
March 12, 2014 15:01
-
-
Save mschmitt/9508729 to your computer and use it in GitHub Desktop.
dyn-bind-updater.sh
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 | |
# Aktuelle IP | |
IP=`lynx --dump --source http://www.ipv4.dyn.f00.net/ip.php` | |
IP6=2001:db8::1234:5678 | |
KEY='dynupdate-meinkey:UGVuaXMhCg==' | |
HOST='meinhost.dyn.meinedomain.de' | |
nsupdate -y $KEY <<Ende | |
server meinnameserver.meinedomain.de | |
update delete $HOST | |
update add $HOST 1 A $IP | |
update add $HOST 1 AAAA $IP6 | |
send | |
Ende |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I strongly recommend using this:
It's fast, and good. And
http://ip.telize.com
gives you response (v4 or v6) depending on how query got there.