Jump to content

WHOIS Lookup & Information for .PK


Recommended Posts

I have done some effort and setup my own API.

 

visit this url replacing the domain name.

http://api.sasti.pk/whois?domain=google.pk

 

By default it gives output in "plain" but there are 3 more outputs(json,xml,raw) you can use just add the output parameter with the required value. example

 

http://api.sasti.pk/whois?domain=google.pk&output=json

http://api.sasti.pk/whois?domain=google.pk&output=xml

http://api.sasti.pk/whois?domain=google.pk&output=plain

http://api.sasti.pk/whois?domain=google.pk&output=raw

 

 

you can use it in WHMCS whoisservers.php file like this:

.pk|http://api.sasti.pk/whois?domain=|HTTPREQUEST-Domain Not Found in Whois

.com.pk|http://api.sasti.pk/whois?domain=|HTTPREQUEST-Domain Not Found in Whois

.net.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

.org.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

.edu.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

.web.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

.biz.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

.fam.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois

 

ONLY SUPPORTS HTTP REQUESTS FOR WHMCS

 

Let me know if there are any problems or bugs. you can find me at https://github.com/ProfessorHaseeb

Link to comment
Share on other sites

Let me know if there are any problems or bugs.

your hosting account has been suspended - so there is no way to test this!

 

also, if you only need to check whether a .pk domain is available for registration, you can use the offficial .pk web site to get the answer.

 

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

the whois output might not be great, but it can be used during the order process to check if the domain is available or not.

Link to comment
Share on other sites

thanks for taking a look. i was using a small shared server, this api is now shifted to dedicated api server so hopefully you shouldn't see problems anymore.

 

well yes you can use the official .pk website to get the answers. but they do not provide json/xml to the public. this API give you JSON and XML responses too, and the whois output is great too.

 

- - - Updated - - -

 

thanks for taking a look. i was using a small shared server, this api is now shifted to dedicated api server so hopefully you shouldn't see problems anymore.

 

well yes you can use the official .pk website to get the answers. but they do not provide json/xml to the public. this API give you JSON and XML responses too, and the whois output is great too.

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