Skip to content

Instantly share code, notes, and snippets.

@agarzon
Last active July 6, 2018 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save agarzon/2431219 to your computer and use it in GitHub Desktop.
Save agarzon/2431219 to your computer and use it in GitHub Desktop.
ENOM IP Updater (PHP)
<?php
/* Run this script every 5 minutes (or 1 hour, is up to you) using a cron task */
/* Edit this data*/
$domain = "mydomain.com";
$pass = "xxxxxx";
$host = ""; // Optional, for additional hosts names like: ftp., mail. or any sub-domains.
/* DO NOT EDIT FROM HERE */
file_get_contents("http://dynamic.name-services.com/interface.asp?command=SetDNSHost&Zone=@.$domain&DomainPassword=$pass");
file_get_contents("http://dynamic.name-services.com/interface.asp?command=SetDNSHost&Zone=www.$domain&DomainPassword=$pass");
file_get_contents("http://dynamic.name-services.com/interface.asp?command=SetDNSHost&Zone=*.$domain&DomainPassword=$pass");
file_get_contents("http://dynamic.name-services.com/interface.asp?command=SetDNSHost&Zone=$host.$domain&DomainPassword=$pass");
@riddicc
Copy link

riddicc commented May 28, 2018

hi!
why does it say
ResponseString1=Validation error; not found; domain name(s)
since days?
it is not the password (then it would say "Validation error; invalid ; loginid")...
thx.
bye

@riddicc
Copy link

riddicc commented Jul 6, 2018

it works again... booyah! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment