Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@riddicc 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

This comment has been minimized.

Copy link

@riddicc 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