Why WHMCS said every free .info domain was taken
WHMCS's WHOIS check called free .info, .cloud and .blog names taken. Why its patterns drift, why .info has no WHOIS server, and the fix we made.

You type a name into your domain search that nobody could own, a run of random letters, and it comes back taken. You try another. Taken. Change the ending to .com and the same name is free. If you sell domains through WHMCS, or through anything else that decides availability by reading WHOIS, that pattern is worth recognising: the name almost certainly isn't taken. The lookup didn't understand the answer.
That's what happened to ours. In September 2026 our domain search reported every free .info, .cloud and .blog name as taken. All three are endings we advertise and sell, and .cloud is the ending in our own address. Nothing errored and nothing logged a fault. The search answered quickly and confidently, and it was wrong.
This is how we found it, why it happens, and what replaced it. Most of it applies to any system that reads somebody else's free text and turns it into a yes or a no.
A reply WHMCS can't match counts as taken#
Our own domain search arrived on 8 September 2026: a search box on our pages, with results from the Flask application that runs our member area and WHMCS behind it for prices and availability. For availability it called WHMCS's classic API action, DomainWhois, which answers available or unavailable along with the raw WHOIS text. Our code turned that into a yes or a no.
WHMCS decides between the two using a file it ships, resources/domains/dist.whois.json. For each ending it names a WHOIS server and a piece of text. WHMCS's WHOIS Servers guide says that text "must only appear in the output when the domain is available". This is the .cloud entry, in the file's own format:
{
"extensions": ".cloud",
"uri": "socket://whois.nic.cloud",
"available": "No Data Found"
}
WHMCS asks the server, then looks for the phrase. Phrase present: available. Phrase absent: unavailable. That works for as long as each registry keeps using the same words. When a registry rewords its reply, or stops answering, every free name becomes taken, and nothing about the reply looks like an error.
Three endings had drifted, each in its own way#
On the evening of 14 September the owner asked a plain question: why does every .cloud address come back as taken? The first test confirmed it. Made-up .cloud names were taken, and so were made-up .blog names, while the same names ending .co.uk and .com were free. Running one made-up name across every ending we advertise narrowed it to three: .info, .cloud and .blog always said taken, and everything else behaved.
DomainWhois returns the registry's own words next to its verdict, and that settled the cause in one call. For a .cloud name nobody had registered, the raw text said the domain "is available for registration", and the verdict beside it said unavailable. Comparing the patterns in the file with what each registry's WHOIS server sent back directly showed all three faults:
| Ending | WHMCS looks for | The registry answered, 14 September 2026 |
|---|---|---|
| .cloud | No Data Found | >>> Domain name.cloud is available for registration |
| .blog | DOMAIN NOT FOUND | Not found: name.blog |
| .info | Domain not found | TLD is not supported. |
.cloud and .blog had simply changed their wording. .info was different. Every WHOIS server we tried for it, including the one in WHMCS's file, answered "TLD is not supported." IANA's record for .info shows why: it names Identity Digital as the registry and lists an RDAP server, but no WHOIS server. There's nothing left to point a pattern at.
The file had drifted in other places too. That night the WHOIS server listed for .co didn't resolve at all. We don't advertise .co, so it didn't touch our search, but it's the same lesson: the file is a snapshot, and registries keep moving after it's taken.
WHOIS was never meant to be read by a machine#
WHOIS is the old protocol for asking a registry who holds a domain. RFC 3912 describes it: a server listens on TCP port 43, takes a name and sends back text in "a human-readable format". It defines no structure for that text, and the RFC says plainly that "the WHOIS protocol has not been internationalised". So every registry formats its replies its own way, and the only way to read them by machine is a pattern per registry, which breaks whenever the wording changes.
RDAP, the Registration Data Access Protocol, is its replacement. ICANN describes it as a protocol that "delivers WHOIS-like registration data, but in standardized data access and query response formats": JSON over HTTPS, with the same structure and field names everywhere, though how much each registry fills in still varies. IANA keeps a bootstrap registry, defined in RFC 9224, that tells a client which RDAP server holds each ending. ICANN's page also says that as of 28 January 2025 generic top-level domain registries and registrars "are no longer required to provide WHOIS services (except for .com, .name, and .post)". Expect more endings to go the way of .info.
RDAP isn't a universal answer yet, either. When we built our domain expiry checker on 17 September, Nominet's RDAP service turned away anonymous queries for .uk names three times out of three, so that tool reads RDAP for most endings and falls back to Nominet's port 43 service for .uk.
Correcting the patterns would only have fixed two of three#
The obvious fix was to correct the patterns. WHMCS supports this: its guide says not to edit dist.whois.json and to put your own entries in an override file, whois.json, alongside it. That would have fixed .cloud and .blog. It couldn't fix .info, because no WHOIS server exists to be corrected. And it would have made us the keepers of those patterns, so the next registry to reword its reply would be ours to notice, most likely when a customer told us.
WHMCS can also make lookups over https://, so pointing .info at its RDAP server looked possible. The .info RDAP server refused requests from our server, so that ended there.
One detail from earlier that evening turned out to matter. Asked about an .ai name, DomainWhois didn't guess: it returned an error saying the ending wasn't supported for WHOIS lookup, so our search showed that name as one it couldn't check. That's the right failure. The .cloud failure was worse precisely because it looked like an answer.
Ask the registrar, and read the status rather than the boolean#
WHMCS 9 also has a newer REST API, still published as a beta, which includes an availability endpoint described as "Retrieve the registration eligibility for a domain". On our installation it gets its answer from eNom, our registrar, rather than from the pattern file. We ran it side by side with the old call that evening:
| Measured 14 September 2026 | Classic DomainWhois | REST API status |
|---|---|---|
| A made-up .co.uk name | available | available for registration |
| A made-up .com name | available | available for registration |
| A made-up .info name | unavailable | available for registration |
| A made-up .cloud name | unavailable | available for registration |
| A made-up .blog name | unavailable | available for registration |
| google.info | not tested | registered |
| sanechoice.cloud | unavailable | registered |
| wordpress.blog | not tested | registered |
The reply carries two answers, and they don't always agree. There's a boolean, is_domain_available, and a status with five values: registered, available for registration, reserved, unknown and tld not supported. An earlier test that evening had already shown the trap: x.ai came back with the boolean true and the status reserved. Trusting the boolean would offer a customer a name the registry is holding back. So the code reads the status and nothing else, and anything it doesn't recognise counts as "we don't know":
AVAILABLE = "available for registration"
TAKEN = ("registered", "reserved")
def domain_available(name):
"""(available, status). True, False, or None for "we don't know"."""
code, data = store_api_get("domain availability", name)
# A name already registered through us comes back as a 422,
# "already registered with us". That's an answer: it's taken.
if code == 422:
message = str((data or {}).get("message") or "").lower()
return (False, "registered") if "already registered" in message \
else (None, "unknown")
if code != 200:
raise Unavailable(code)
state = (data["data"]["domain"].get("status") or "").strip().lower()
if state == AVAILABLE:
return (True, "available")
if state in TAKEN:
return (False, state)
return (None, state or "unknown") # unknown, tld not supported
The 422 case turned up within minutes of the switch. Asking about our own sanechoice.co.uk returned an error, because the API answers a name already on our books with "The domain you entered is already registered with us". That's true, and it means taken. Treating it as a failure would have told every customer who searched for their own domain that we couldn't check it. Any other 422 still counts as "we don't know".
Two decisions went with the switch. There's no fallback to the old call: it isn't slow or unavailable, it's wrong, and falling back to it would bring the bug back for exactly the endings this fixes. And the old method was deleted rather than left unused, because, as the commit put it, "a dead method that still looks like the obvious call is how the bug comes back". The question was asked at 9.02 pm, the fix was committed at 9.07 pm, and it was live a few minutes later.
Eight lookups at once, cached, behind a circuit breaker#
A search checks the ending you typed and the others we advertise, eight names in all. .info and .blog joined that list the same night: they'd been in our price list all along but couldn't be searched usefully. Each lookup is a round trip to the registrar, so they run in parallel through a small helper that also handles caching and failure:
got = fetch_all(
{name: (shared_key("availability", name), lookup(name)) for name in names},
cache, breaker, workers=8)
- Eight workers for eight names, so every lookup goes out at once and the page waits for the slowest one rather than the sum of them.
- One cached answer serves everybody. Every other entry in this cache carries a customer's account number in its key, so no customer can ever see another's data. Availability is a public fact, so it gets a separate shared key, and a short life of under a minute.
- A circuit breaker stops calling after a run of consecutive failures, so visitors don't each wait out a timeout while WHMCS is unwell, then lets one request through to see whether it has recovered. It only counts calls that were actually made: a cache hit proves nothing about whether the API is answering now.
- "We don't know" is shown, not hidden. A result that comes back
Noneshows "Could not check" with a button through to our store, which checks again. If nothing answers at all, the visitor goes straight to the store with their search already filled in.
A reserved name now stops a transfer before checkout#
The reserved status earned its place again on 12 October 2026, the day domain transfers moved into our own basket. In a live test, example.com went into the basket and WHMCS refused it at checkout as reserved. That's correct: IANA's page on example domains says they "are not available for registration or transfer". It just came one step too late.
The transfer page now asks the same availability question first. A reserved name is refused with the reason. A name nobody holds is offered as a registration instead, since a transfer of a free name is a registration somebody didn't know they wanted. A registered name goes into the basket. So does one the lookup couldn't check, deliberately: WHMCS checks every transfer again at checkout, and a refusal there sends the customer back to the basket with the likely reasons, so an unanswered lookup doesn't stop someone moving a domain they genuinely own. The search results stopped offering a transfer price for reserved names at the same time.
available, status = domain_available(name)
if status == "reserved":
return refuse(f"{name} is reserved by its registry, so it can't be transferred.")
if available is True:
return offer_registration(name)
# Registered, or we couldn't tell: WHMCS checks again at checkout
add_transfer(basket, name)
Test in both directions, for every ending#
The test that found the bug is the one worth copying. For each ending, check a name that must be free and a name that must be taken. A made-up string of letters covers the first, and a well-known registered name covers the second. A lookup that says "taken" to everything passes half of that and fails the other half, and that's exactly the bug a one-directional test misses. After the switch went live, the same check ran through the public search page: sanechoice.co.uk and sanechoice.com came back taken, sanechoice.uk came back free, and a made-up name came back free on .co.uk, .com, .uk, .net, .org and .cloud.
The automated tests never touch the internet, and a deploy stops if any of them fails. A stand-in for the availability call says .com names are taken and everything else is free, which is enough to exercise both branches of every page. Others cover the failure path, where an availability call that can't answer sends the visitor to the store with their search, and the three transfer outcomes: reserved, free and registered.
One more test came out of the search's first build, and it's cheap to add to any Python codebase. On 8 September a new availability method was briefly named domain_whois, the same name as the method that reads a customer's registrant details, and it silently replaced it. Python keeps the last definition without complaint when it runs, and only a linter, if you run one, would flag it. A test now fails if any class defines the same method twice.
For a check against the live system, a script that walks through the site as a customer would can run one real domain search when asked.
What we learned#
- Free text from someone else is a contract they never signed. Matching a phrase in another system's human-readable output works until they reword it, and they won't tell you. Prefer a structured source, RDAP or a registrar's API here, whenever one exists.
- Don't let "no match" mean "no". A default that turns every parsing failure into a confident answer hides the failure. Keep "we don't know" as a third state, all the way to the screen.
- Read the most specific field. A boolean summarises; a status explains. When the two disagree, the status is usually the one telling the truth.
- Read the message on an error before treating it as a failure. Our 422 was a correct answer in an error's clothing.
- Don't fall back to a source you know is wrong. A fallback is for something slow or down. Delete the old path so nobody reaches for it later.
- Test with controls in both directions. A must-be-free name and a must-be-taken name, per ending, would have caught this on the first day.
If your own WHMCS domain search says "taken" to names nobody could own, open dist.whois.json, find the ending, and ask its WHOIS server for a made-up name yourself. If the text that comes back doesn't contain the phrase WHMCS expects, you've found it. If you'd rather someone else looked, tell us what you're seeing.


