Privacy

Domain hijacking: how to recover your website and DNS

A redirect can come from a hacked registrar, changed DNS or the website itself. Find where control was lost and recover the site and email in the right order.

Made by Pagember · Editorial policy

Primary sources + editorial analysisPublished Updated Sources

The short answer

Use a trusted device and contact your registrar and DNS provider through official channels, avoiding email on the affected domain. Work out whether the registration, authoritative DNS or website changed, then recover the registrar and DNS accounts, secure credentials and check DNSSEC before restoring known-good records. Verify the website and email separately, and add a transfer lock and auto-renew afterward.

On this page6 sections

If your domain sends visitors to an unfamiliar page, use a trusted device and contact your registrar and DNS provider through their official channels. Avoid using email under the affected domain for recovery while its routing is uncertain. Work out whether the registration, the authoritative DNS or the website changed before attempting to put everything back.

A blue globe with two network cables and a luminous route branching to the right.

Is this your case? Use this guide when someone else changed your registrar account, nameservers or DNS. If the domain simply lapsed, read My domain expired: what can I do now?; to keep control in the first place, see Who should own your business domain?

Find where control changed

Write down the time with a time zone, the hostname involved and the unexpected destination. Ask a second person on another network to verify whether they see the same behavior. A broken deployment, stale DNS cache or an old redirect can look like a hijack. The investigation starts with evidence about which layer changed.

  1. Registration: check the current sponsoring registrar, registration status and allowed contacts through trusted support or the appropriate registry lookup. A missing domain or an unexpected transfer needs registrar action first.
  2. Delegation and zone: confirm the delegated nameservers and compare the answers from the authoritative servers with your pre-incident records. Look at the web records, mail exchangers and relevant TXT records. Save the unexpected values before restoring approved ones.
  3. Website: if registration and authoritative DNS match your records, inspect redirects at the CDN and hosting provider, deployment history and application settings. Test the apex domain and any www address independently.

A valid HTTPS lock does not establish that the destination belongs to your business. Changes to DNS may let an attacker obtain a certificate. If you have a certificate history or monitoring alerts, ask your provider to investigate unexpected issuance and what needs revocation. Check the scope against the CISA DNS tampering guidance.

Recover the registrar and DNS accounts in order

Open cases with trusted support, describe the suspected unauthorized actions and ask each provider what it can stop or reverse. If a transfer occurred, contact the registrar that held the domain before the transfer as soon as possible. Ask about its recovery and dispute process for your domain ending. ICANN provides registrant guidance for transfers under its policies. Hold off on a further transfer unless the responsible provider advises it.

During recovery, secure the registrar, DNS host and the independent recovery inbox. Change exposed credentials, revoke unauthorized sessions or API keys, remove unknown users and restore approved multifactor methods. Ask the registrar about transfer locks and about stronger registry locks where supported. These controls apply to different changes, so record what each provider can actually block.

Once an authorized owner controls the registration, coordinate with the intended DNS provider and verify DNSSEC before changing nameservers. The registrar’s DS record must match the legitimate provider’s signing setup. A stale DS can prevent validating resolvers from reaching the restored zone. Follow the DNSSEC nameserver recovery checks, then restore the known-good delegation or records and retain both sets of values.

Verify the website and email separately

Query the authoritative nameservers and compare with results from independent public resolvers. Resolver caches can keep older answers until their lifetimes expire. Confirm the website opens with the expected hostname and certificate, and test key public routes from a clean browser. Monitor for repeat changes. Check MX and the expected SPF, DKIM and DMARC configuration, then test sending and receiving messages with an independent account. If mail was routed elsewhere, review the incident as a possible business email compromise.

Lock the domain before anything goes wrong

  • Transfer lock. Turn on the registrar lock. A public lookup then shows the status clientTransferProhibited, which blocks transfers until you remove it.
  • Registry lock. For a domain the business cannot afford to lose, ask the registrar whether it offers registry lock for your extension. Changes then need a manual, verified request.
  • Account security. Use a unique password and app-based MFA or a passkey on the registrar and DNS accounts, and remove former staff and agencies.
  • Recovery contact. Keep the account email on a different domain, so losing this domain does not lock you out of the registrar.
  • Renewal. Turn on auto-renew with a valid card, so an expired registration cannot be picked up by someone else.

To check the current status from a terminal, run whois yourdomain.com and look at the Domain Status lines, or use the registry's RDAP lookup. Before moving the domain on purpose, follow the domain transfer checklist so the lock is removed only for the transfer window.

Keep a domain recovery file you can use offline

Record the legal owner, registrar, nameservers, support route, alternative contact and a dated export of the expected DNS zone. Use independently protected recovery details and keep a second authorized person able to reach support. The domain registrar guide explains which access belongs with which service.

Practice drill: draw a synthetic domain with an expected web address, an expected mail service and a dated zone export. Make a copy of the worksheet and replace the MX entry with an unfamiliar destination. Identify the correct provider, decide who will restore the route and define the evidence you would collect after recovery. No public DNS changes are needed. Store the worksheet with your current provider details so the real response does not start from a search result.