====== Script para actualizar un host en ZoneEdit ====== Se deben cambiar las variables que se encuentran al inicio, colocando los valores correctos. #!/bin/bash # # Por FMSI # # Colocar en las siguientes variables los datos necesarios ZUID="zoneedituname" ZPWD="zoneeditpassw" ZHOST="host.dominio.com" INETIFACE="ppp0" # Averiguo la dirección IP externa OUTERIP=`/sbin/ifconfig $INETIFACE | /bin/grep inet | /usr/bin/cut -d : -f 2 | /usr/bin/cut -d \ -f 1` echo ---------------------------------------- echo "[ `date` ] >>> Actualizando ZoneEdit..." echo ---------------------------------------- echo echo "Actualizando IP de $ZHOST..." /usr/bin/lynx -source -auth=$ZUID:$ZPWD "http://dynamic.zoneedit.com/auth/dynamic.html?host=$ZHOST&dnsto=$OUTERIP"