khsprince Posted October 24, 2016 Share Posted October 24, 2016 Hi, PKNIC WHOSI Lookup for WHMCS 7.0.1 Add following code dist.whois.json for more information visit WHMCS Documentation http://docs.whmcs.com/WHOIS_Servers { "extensions": ".pk,.com.pk,.org.pk,.net.pk,.edu.pk", "uri": "http://pknic.ehostpk.com?name=", "available": "not found" } 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 24, 2016 Share Posted October 24, 2016 technically, if you're going to add custom whois entries, you do not edit dist.whois.json - you create a new file, whois.json, in the same folder and add the code in there. 0 Quote Link to comment Share on other sites More sharing options...
Tamer Fahmy Posted December 18, 2016 Share Posted December 18, 2016 I have the same problem, It is not working when we use it in a new file ( whois.json ) , it is only work when we put it in ( dist.whois.json ), I know that it is important to use a separate file to avoid lose data with each update , but this is what happen 0 Quote Link to comment Share on other sites More sharing options...
urko Posted January 5, 2017 Share Posted January 5, 2017 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 0 Quote Link to comment Share on other sites More sharing options...
urko Posted January 5, 2017 Share Posted January 5, 2017 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 5, 2017 Share Posted January 5, 2017 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. 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. 0 Quote Link to comment Share on other sites More sharing options...
pakhost Posted January 6, 2017 Share Posted January 6, 2017 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! 1 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.