Jump to content

customising WHOIS server with multiple answers...


Remitur

Recommended Posts

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... 🙄

Link to comment
Share on other sites

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. 

 

Link to comment
Share on other sites

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.

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