• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Dynadot API open to users with regular pricing!

Status
Not open for further replies.

Michael

New Member
Legacy Platinum Member
Joined
Aug 1, 2007
Messages
421
Reaction score
19
Well, not really... which is why I wrote my own API for you guys to use with Dynadot. Now you don't have to spend $500/year and qualify for bulk pricing to be able to achieve automated registrations.


Instructions:
  1. Go here to view the code.
  2. Create a file called dynadot.php, and copy/paste the code into it.
  3. Edit the username and password to match your Dynadot login credentials.
  4. Save the file and upload to your server.
That's it! Easy, huh?

Usage:
Code:
[URL]http://www.yourdomain.com/dynadot.php?domain=abc.com[/URL]

As the code is, it can register up to 10 domains in a single call like so:

PHP:
http://www.yourdomain.com/dynadot.php?domain=abc.com&domain1=def.com&domain2=ghi.com&domain3=jkl.com

and so on... until you get to domain9.


Requirements:
  • Your server must have PHP installed.
  • Your Dynadot account must have enough credit to perform the registration.
Supported TLDs: com, net, org, info, biz, mobi, tv, co.uk, asia, me, name, ws, us, cn, cc

Notes:
  • If you call the script too many times in one day, Dynadot will show a captcha near the login box and the script will no longer work. Wait 10 minutes or so and it will work again.
  • If you post about this in your blog or on other forums, please give credit where credit is due, and provide a link back to DomainRaiders.com.
  • Please do not remove the copyright notice on top.
  • Please do not sell the script.
Enjoy!
 
Wow. Thank you very much sir.
 
Legal or not??
 
Yep, as far as I can tell from their TOS it is only frowned upon if you use it for chain registrations/deletions (i.e. kiting), but people don't do that any more because of the $0.20 fee. The script pretends to be a browser, so Dynadot can't tell it isn't a human doing it anyway.

Not sure how many requests InterNIC lets you do before they ban your IP for the day, but this is an example of how the API could be used in a simple drop-catching script:

drop.php:
PHP:
<?php
$url = "http://reports.internic.net/cgi/whois?whois_nic=" . $_GET['domain'] . "&type=domain";
$result = file_get_contents($url);
 
while(eregi("Domain Name:", $result))
{
 $result = file_get_contents($url);
}
 
if(eregi("No match for domain", $result))
{
 $url = "http://www.yourdomain.com/dynadot.php?domain=" . $_GET['domain'];
 file_get_contents($url);
}
 
?>
Then you would just open your web browser when it gets close to the drop time and type in:

www.yoursite.com/drop.php?domain=abc.com

and it would keep checking until abc.com is available, call the API, and register it for you. This example is extremely simplified and only works on the extensions Internic can check and the API can register (biz, com, info, mobi, name, net, org). It doesn't use proxies or multithreading and is just a very basic example of how it could be used. Hopefully it gives you guys some ideas though.
 
Status
Not open for further replies.
Back
Top Bottom