Remitur Posted October 15, 2018 Share Posted October 15, 2018 For a certain TLD, if a domain is free for registration the whois server may respond with two different string: "available" or "reserved" (yes, it's strange: it's "reserved", but it can be registered... the Registry later check if the registrant is authorized to register it or not) So, the question is: does exist any syntax to allow to specify two different string in whois.json? Something like: { "extensions": ".myextension,.myextension.com", "uri": "socket://whois.myextension.net", "available": "available" "reserved" }, (which, of course, does not work... 🙄 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 15, 2018 Share Posted October 15, 2018 You could try with an array like follows: "available" : ["available", "reserved"] But I suspect that it will not work since it depends by the PHP that we can't see because it's obfuscated. For sure the script doesn't expect "available" to be an array. Let us know if it works. 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 16, 2018 Share Posted October 16, 2018 17 hours ago, Remitur said: So, the question is: does exist any syntax to allow to specify two different string in whois.json? i'd go along with @kian on this one and say that it wouldn't work. what you would normally do with that URL field in whois.json is give it the URL of a script, which performs a whois lookup itself, parses the output and if it sees either "Available" or Reserved", it returns a given availability string that WHMCS expects for "available" domains. 1 Quote Link to comment Share on other sites More sharing options...
Remitur Posted October 19, 2018 Author Share Posted October 19, 2018 WHMCS support confirmed there's no way to do it ... 😢 The trick suggested by @brian! is a very good idea, maybe it may works, but it's not worthwhile for this task... I'm thinking about using it in another project... 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.