NandorRas Posted September 12, 2016 Share Posted September 12, 2016 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! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 13, 2016 Share Posted September 13, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.