Skip to content

Instantly share code, notes, and snippets.

@victorfuertes
Last active October 22, 2015 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorfuertes/f82f3aaffe146d06718b to your computer and use it in GitHub Desktop.
Save victorfuertes/f82f3aaffe146d06718b to your computer and use it in GitHub Desktop.
#!/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