Jump to content
Sign in to follow this  

How to Fix WHOIS Lookup Error in whmcs

Recommended Posts

when any clinet search domain then showing error

Client Side:   Oops somethings went wrong


System log

WHOIS Lookup Error for 'khobor24x7.in': error detail unknown



please help to fix.



Share this post

Link to post
Share on other sites

1. Create a custom whois.json file with the following content. If there is already a custom whois.json file present, simply append it with the following content.

        "extensions": ".ac.in,.co.in,.org.in,.ernet.in,.gov.in,.net.in,.res.in,.in",
        "uri": "socket://whois.registry.in",
        "available": "No Data Found"

2. Upload this whois.json file in the /resources/domains/ directory of your whmcs installation.

3. Please don't modify the default dist.whois.json provided by WHMCS.

Share this post

Link to post
Share on other sites
4 hours ago, Shivansh said:

when any client search domain then showing error

Client Side:   Oops somethings went wrong

whenever you see Oops and need more information, you will need to enable Display Errors...


4 hours ago, Shivansh said:

WHOIS Lookup Error for 'khobor24x7.in': error detail unknown

possibly related to the whois server details being outdated for .in domains

or maybe related to your HostX theme from @WGS - trying with a clean version of Six should tell you either way if it's a template issue.

also, you may want to check your WHMCS license details... the WHMCS license verification page says that your site (starting with p) doesn't seem to have a valid WHMCS license and has been reported to the WHMCS Legal department! naughty.gif

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Similar Content

    • By JesusSuarz
      this time I leave you a small script that we did for my company a few months ago to add the whois (see domain information) to whmcs.
      I clarify that I did not see this published anywhere, this was an old whmcs function, but for some reason it was removed in the new versions, in theory it was something we came up with to do for https://cangurohosting.com.

      To explain a bit, the operation is based on using the WHMCS own api to perform the whois. The code works perfectly with the default whmcs template. if you want to add it in a custom template it should work fine in your template, and if that is not the case then you need to fix it on your own for your own whmcs.

      To implement, you simply create the file verificar-whois.php in the root directory of your whmcs installation.
      <?php require_once 'init.php'; $dominio = $_POST['dominio']; $command = 'DomainWhois'; $postData = array('domain' => $dominio); $results = localAPI($command, $postData); $whois = $results["whois"]; echo '<pre style="overflow: unset !important;font-size: 11px !important;text-align: left; white-space: normal;">' . $whois . '</pre>'; ?>  
      Then go to the active template of your shopping cart in use:
      /templates/orderforms/standard_cart Open file: domainregister.tpl
      Find the line with the following content:
      {lang key='orderForm.domainIsUnavailable' You must comment or remove this entire line of code:
      <p class="domain-unavailable domain-checker-unavailable">{lang key='orderForm.domainIsUnavailable'}</p> Then you should paste the following code below:
      <p class="domain-unavailable domain-checker-unavailable alert alert-danger"><strong>{lang key='orderForm.domainIsUnavailable'} </strong> no está disponible <a href="#WhoisModal" class="BotonSolicitarWhoisOpenModal btn-danger btn-sm btn">Ver Información (Whois) de este dominio.</a> <script> var elDominio = ""; setInterval(function(){ if( $('div#DomainSearchResults div#searchDomainInfo.domain-checker-result-headline div#primaryLookupResult.domain-lookup-result p.domain-unavailable.domain-checker-unavailable.alert.alert-danger').is(":visible") ) { elDominio = $('div#DomainSearchResults div#searchDomainInfo.domain-checker-result-headline div#primaryLookupResult.domain-lookup-result p.domain-unavailable.domain-checker-unavailable.alert.alert-danger strong')[0].innerHTML; } }, 100); /* buscar boton modal */ $( ".BotonSolicitarWhoisOpenModal" ).click(function() { $('.InfoHeader-Whois').html(elDominio); $("#WhoisModal").modal("show"); $.ajax({ url: '/verificar-whois.php', type: 'post', async: true, crossDomain: true, data: { dominio: elDominio }, success: function( data, response){ $('.DatosWhois').html( data ); } }); // by cangurohosting.com }); </script> <!-- Modal --> <div class="modal fade" id="WhoisModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header" style="text-align: left !important;"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title" >Informacion WHOIS para el dominio: <span class="InfoHeader-Whois"></span></h4> </div> <div class="modal-body"> <div class="DatosWhois"><div class="loader-whois"></div> <span>Cargando..</span></div> </div> <div class="modal-footer" style="text-align: right !important;"> <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button> </div> </div> </div> </div> the code has some paragraphs in Spanish, you can edit as you like.
      I hope you serve them and they like it.
      Sorry if my English is not very good. 🙂 I hope you understand me.
    • By Remitur
      Anybody here know how to set whois.json for .ax domains?
      I tried (unsuccessfully):
      { "extensions": ".ax", "uri": "socket://whois.ax", "available": "is free" }, but it doesn't work ... 😞
    • By postcd
      Hello, in the WHMCS 6.3.2 the whois configuration file sets the .me domain whois server to whois.nic.me
      In the WHMCS logs i see " WHOIS Lookup Error for encrypt.me': Error: 110 - Connection timed out "
      I paused Cloudflare protection for the site and waited 2 minutes, that whois whmcs lookup continue to timeout.
      The IP shown was my IP. When i do Linux command (whois encrypt.me -h whois.nic.me) from my computer with that public IP, then the WHOIS works, and does not timeout.
      I asked my hosting provider to do the same command from the hosting server where WHMCS is hosted, it does not timeout either.
    • By zitu4life
      Hello there
      I was trying add new WHOIS but not successful. What I have done so far:
      Adding a custom whois.json file to cpanel...

      folow WHMCS docs on https://docs.whmcs.com/WHOIS_Servers#Customising_WHOIS_Servers
      Editing my new json file for example
      [ { "extensions": ".myextension", "uri": "socket://whois.myextension.net", "available": "No match for" } ] But did not realize yet from where I will find uri information
      "uri": "socket://whois.myextension.net", on IANA?

      but it is not so clear for me, for example if I want to add a TDL .cv how my json file should be?
    • By minadreapta
      The domain additional fields are not editable anymore from WHMCS after upgrading to 5.0.7. It shows as editable, it says the modification has been saved but it doesn't save it.
      I had to modify it from phpmyadmin.
  • 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