/usr/local/sbin/control-dyn-dns.pl /media/DATA-4T/DATA/Eigene_Dateien/EDV-Tel/Perld/dyn-dns-dtdns/control-dyn-dns.pl # control-dyn-dns.pl # # for unix only (tested only on Ubuntu Lucid 10.04), needs prg hostname # Description: # My ip-adress is saved at dyn-server (e.g. dtdns.net) and can be requested from there. # It will be saved and updated to $cachefile, if my dynamic dns has changed. # $cachefile saves the time and the last ip got after having invoked this script # and the changed ip was written to the dyn-server. # Usage: # control-dyn-dns [ ip | 0.0.0.0 | -f ] # no or one param possible # ( ip e.g. 123.124.125.126 ) # # First current ip is requested and written to $cachefile. # # Run with no param, it finds current ip and writes it to the dyn-server only, if # not equal to ip saved in $cachefile (avoids too much traffic). # Nevertheless 30 days after last updating it will update the ip on the server # to make the server happy. # # Run with an ip as param (x.x.x.x) writes this ip to the dyn-server. # # Run with param 0.0.0.0 writes this ip to the dyn-server implying the ip is unreachable. # # Run with -f as param writes the ip to the dyn-server w/o reading $cachefile. # # Controls, #