Nelson Neoh Posted July 6 Share Posted July 6 (edited) As noted, the whois is going sunset for lots of registries and rdap or other kind will replace it. I have a problem with handling the uri which returning results in JSON form. Wonder how to deal with the expected keyword? The test in whois lookup. The sample response in JSON: {"code":"1000","message":"Command completed successfully.","data":{"available":true,"premium":false,"online":true,"landrush":false}} The settings in whois.json { "extensions": ".my,.com.my,.net.my,.org.my,.edu.my,.gov.my", "uri": "https://api.sample.com/query?domainName=", "available": "\"available\":true" } Edited July 6 by Nelson Neoh 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted July 22 Share Posted July 22 (edited) This works: { "extensions": ".my", "uri": "socket://whois.mynic.my", "available": "is available for registration" } Edited July 22 by RadWebHosting extensions 0 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted July 25 Author Share Posted July 25 Hi, thanks for providing the MyNIC endpoint, but after all this is still a standard WHOIS response. I am checking what if the response is RDAP JSON form? How can this achieve in the WHMCS WHOIS.json config? 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted yesterday at 08:21 AM Share Posted yesterday at 08:21 AM .my registry doesn't have an RDAP server so this TLD would be a bad example for testing this. Here's a link to the IANA RDAP servers: https://data.iana.org/rdap/dns.json 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted yesterday at 08:25 AM Share Posted yesterday at 08:25 AM For example, the last entry in the test whois.json I have was .you. Was: { "extensions": ".you", "uri": "socket://whois.nic.you", "available": "This domain name has not been registered." } Now: { "extensions": ".you", "uri": "https://rdap.nominet.uk/you/domain/", "available": "404" } Verified working 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.