Last active
October 22, 2015 15:25
-
-
Save victorfuertes/f82f3aaffe146d06718b to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env zsh | |
# Info: | |
# | |
# https://support.cdmon.com/entries/24118056-API-de-actualización-de-IP-del-DNS-gratis-dinámico | |
# | |
# - Usar con crond u otro demonio para funcionamiento periódico. | |
USER="dnsuser" # Nombre de usuario de DNS Dinámico de CDmon. | |
PASS="1234567890ABCDEFGHIJKLMNOPQRSTUV" # Hash MD5 de la contraseña. | |
HOST="sub.host.org" # Host especificado. | |
IP=`curl http://api.ipify.org` # Resuelve la IP actual del cliente. | |
curl "https://dinamico.cdmon.org/onlineService.php?enctype=MD5&n=$USER&p=$PASS&cip=$IP"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment