Jump to content

PKNIC Domain Whois check Solution for WHMCS 7.0.1 Users


khsprince

Recommended Posts

  • 1 month later...
  • 3 weeks later...

Step 1

 

You have to create a file in main whmcs directory under resources/domains/whois.json

then put below code to this file.

 

 

[

 

{

"extensions": ".pk,.com.pk,.net.pk,.wiz.pk,.net.pk,.org.pk,.edu.pk",

"uri": "http://pk6.pknic.net.pk/pk5/lookup.PK?name=",

"available": "No match for"

},

{

"extensions": ".pk,.com.pk,.net.pk,.wiz.pk,.net.pk,.org.pk,.edu.pk",

"uri": "http://pk6.pknic.net.pk/pk5/lookup.PK?name=",

"available": "not found"

}

 

 

]

 

 

Step 2

now you have add below code to a file in folder in main whmcs directory under includes/whoisservers.php

 

.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.com.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.net.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.org.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.edu.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.web.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.biz.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.fam.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

Link to comment
Share on other sites

Step 1

 

You have to create a file in main whmcs directory under resources/domains/whois.json

then put below code to this file.

 

 

[

 

{

"extensions": ".pk,.com.pk,.net.pk,.wiz.pk,.net.pk,.org.pk,.edu.pk",

"uri": "http://pk6.pknic.net.pk/pk5/lookup.PK?name=",

"available": "No match for"

},

{

"extensions": ".pk,.com.pk,.net.pk,.wiz.pk,.net.pk,.org.pk,.edu.pk",

"uri": "http://pk6.pknic.net.pk/pk5/lookup.PK?name=",

"available": "not found"

}

 

 

]

 

 

Step 2

now you have add below code to a file in folder in main whmcs directory under includes/whoisservers.php

 

.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.com.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.net.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.org.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.edu.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.web.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.biz.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

.fam.pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found

Link to comment
Share on other sites

just to clarify urko's advice above, which is slightly wrong, you only need to do one of the steps - depending on which version of WHMCS you're using. :idea:

 

if you're using v7+, you do step 1 - there is no need to do step 2 as v7 doesn't use /includes/whoisservers.php and the file is not included with v7 - you'd only have that file in v7 if you had upgraded from v6 or earlier.

if you're using v5 or v6, you do step 2 - there is no need to do step 1 as that is only for v7 installations.

Link to comment
Share on other sites

The ccTLD registry URL for domain availability is:

https://pk6.pknic.net.pk/pk5/lookup.PK?name=

 

and available string token is "Domain not found". So whois.json should be as below:

 

[

{

"extensions": ".pk,.com.pk,.net.pk,.org.pk",

"uri": "https://pk6.pknic.net.pk/pk5/lookup.PK?name=",

"available": "Domain not found"

}

]

 

Alternatively, if WHOIS server on standard port 43 is desired, Paknic WHOIS server is here:

 

whois.paknic.com

 

Hope this help!

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