Domain

check()

domain.check() → Promise<Domain>

Re-reads the real state of the zone. It is what moves status from pending to active — nothing else does.

re-reads the zonemoves statusupdates the object
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.check();

if (domain.status === "active") {
  // The registrar points here. The zone is live.
}
domain.check()

if domain.status == "active":
    pass  # The registrar points here. The zone is live.

The only thing that moves status

Nothing checks on its own

A customer who set the nameservers an hour ago is still pending until something calls this. An interface showing a domain's state should offer the check, or run it when the page opens.

The change takes time to be visible

A registrar change is not instant everywhere. A check right after the customer saves it will usually still say pending — which is correct, not a failure. Check again rather than concluding.

It updates the object

status, dns and the rest are replaced with what came back, and the same instance is returned — so a reference you hold stays current.

It refreshes the mail witnesses too

dns is re-read from the zone. For one host in particular, mail.status() is the narrower call.