Jump to content

Domain checker shows all .nl domains taken


NandorRas

Recommended Posts

So I've added a custom whois file to the root of my whmcs installation to use the API of my registrar.

I've edited that file correctly to use my account at the registrar.

 

In the includes/whoisserver.php i've changed the line "#.nl|whois.domain-registry.nl|is free" with ".nl|http://www.raswebsolutions.nl/mdr_whois.php?domain=|HTTPREQUEST-nl is free"

But when I check a .nl domain. It shows all as taken while some definately are not.

 

Since http requests automatically get redirected to https I also tried to edit the line to: ".nl|https://www.raswebsolutions.nl/mdr_whois.php?domain=|HTTPSREQUEST-nl is free"

But then... it shows ALL domains as available while some definately are not!

 

I really need help on this one. I've tried to include the API/mdr_whois.php file as an txt-attachment to this post but for some reason that doesn't work. So I'm pasting the content of the file below:

 

<?php

// 09-02-2014

$user = "user";    // Your MijnDomeinReseller username
$pass = "pass";    // Your MijnDomeinReseller password for the API
$auth = "auth"; // Authtype of the password md5 or plain

$path_to_mdr_class = "modules/registrars/mijndomeinreseller/class_MDR_api.php"; // Path to class for MDR API

require($path_to_mdr_class);

if($_SERVER["SERVER_ADDR"] != $_SERVER["REMOTE_ADDR"]) {
 print "You are not allowed to use this function";
}
else {
 $mdr = new MDR_api();

 $mdr->addParam( "user", $user);
 $mdr->addParam( "pass", $pass);
 $mdr->addParam( "authtype", $auth);

 $mdr->addParam( "command", "whois"         );

 $mdr->addParam( "type",    "bulk"          );
 $mdr->addParam( "domeinen",  $_GET["domain"] );

 $mdr->DoTransaction();

 if( $mdr->Values[ "errcount" ] > 0 ) {
   print "0";
 }
 else {
   print $mdr->Values[ "status[1]" ] == "1" ? "free" : "not available";
 }
}

?>

 

Thanks in advance!

Link to comment
Share on other sites

any chance you're hitting the SIDN WHOIS lookup limits?

I know the default whoisserver file uses the port43 address, so likely has a whois limit of 15 per day; the website has a 500 lookup limit - so i'm not sure if/what the limit would be via API?

 

the following may not help you directly, but a fellow Dutch WHMCS user told me that he uses...

 

.nl|http://whois.domain-registry.nl/is?domain=|HTTPREQUEST-is free

as it gives more consistent results that the default WHOIS (returns availability of a domain - not a full whois) - their IP is whitelisted with SIDN too, so I don't think any limits will be affecting them.

 

do you need the -nl in the HTTPREQUEST part of your entry? e.g would the following work... :?:

 

.nl|http://www.raswebsolutions.nl/mdr_whois.php?domain=|HTTPREQUEST-is free

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated