Skip to content

fix(domains): do not ask a switched-off registrar about availability - #534

Merged
Panelica merged 1 commit into
Panelica:mainfrom
ertugrulkeyvan:fix/inactive-registrar-not-used
Nov 30, 2026
Merged

Panelica merged 1 commit into
Panelica:mainfrom
ertugrulkeyvan:fix/inactive-registrar-not-used

Conversation

@ertugrulkeyvan

Copy link
Copy Markdown
Contributor

The availability check asked the registrar set on a TLD, or the default registrar, whether or not it was switched on. A registrar the operator had switched off, its credentials perhaps removed, was still asked on every search, and each lookup waited for its error before falling back to RDAP and WHOIS.

A switched-off registrar is now skipped the way a TLD without one is, using the rule the modules screen already uses (ModuleSwitchboard::isActive('registrar', ...): on when its visible setting is 1).

Test fixtures that set DomainNameAPI's credentials now also switch it on, as the registrars screen does when it is saved.

Left for you to decide, not changed here: OrderService::registrarForTld() also uses a switched-off registrar for new domain orders. Skipping it there would send the domain to Manual, which marks it active without registering it, so it needs a decision rather than a quick guard. default_registrar also has no settings field, and defaults to domainnameapi in DomainAvailability but to empty in OrderService.

The availability check asked the registrar set on a TLD, or the default
registrar, whether or not it was switched on. A registrar the operator had
switched off, its credentials perhaps removed, was still asked on every
search, and each lookup waited for its error before falling back to RDAP
and WHOIS. A switched-off registrar is now skipped as a TLD without one is,
by the same rule the modules screen uses (ModuleSwitchboard::isActive).

The test fixtures that configured DomainNameAPI's credentials now also
switch it on, as the registrars screen does.
@Panelica
Panelica merged commit c48bafb into Panelica:main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants