To change DNS settings, decide first whether you need to switch nameservers (moving control of your whole zone to another provider) or edit individual records inside your existing zone. Lower the TTL a day ahead, copy down the current values, change one thing at a time, then verify from outside your own network before assuming it worked.
That distinction is the whole game. Most "DNS is broken" emergencies aren't caused by a hard concept — they're caused by editing the wrong layer, changing four things at once, or panicking during propagation and undoing a change that was already correct.
What are you actually changing: nameservers or records?
Your domain has two separate control points, and they live in different places.
Nameservers are set at your registrar — the company you bought the domain from. They're stored as NS records at the registry (the organisation running the TLD, like .com) and answer one question: which provider holds the authoritative answers for this domain? Change them and you hand the entire zone — website, email, verification records — to a different DNS host.
Records (A, AAAA, CNAME, MX, TXT, CAA) live inside the zone at whichever provider your nameservers currently point to: your registrar's own DNS, your web host, or a standalone DNS provider. Editing a record changes one service, leaving the rest untouched.
The practical rule: moving DNS hosting means changing nameservers. Pointing a site at a new server, adding a subdomain, switching email providers, or adding a verification string means editing records. If you're unsure which record type does what, the DNS records guide covers each type in plain English.
Nameserver change vs record edit: which should you use?
| Change nameservers | Edit a record | |
|---|---|---|
| Where you do it | Registrar panel | DNS provider's zone editor |
| Scope of impact | Entire zone — site, email, verifications | One service only |
| Prep required | Recreate the full zone at the new provider first | Note current value; lower TTL |
| Typical use | Moving DNS hosting | New server IP, subdomain, mail host |
| Speed | Registry/TLD refresh, often hours | That record's TTL |
| Rollback | Point nameservers back | Re-enter the old value |
| Main risk | Empty zone takes everything down | Wrong value breaks one service |
The row that matters most is prep. A nameserver switch does not copy your records — if the new provider's zone is empty when the change takes effect, site and mail both stop. Build the zone first, then flip.
How do you prepare a DNS change so it doesn't break anything?
Preparation is where the outage is prevented, not the change itself.
- Inventory the current zone. Export it, or screenshot every record: name, type, value, priority, TTL. This is your rollback source of truth.
- Identify what depends on each record. MX and mail TXT records (SPF, DKIM, DMARC) are email; A, AAAA, and CNAME are your site. Stray TXT records are often ownership proofs for analytics or an email provider — deleting one silently un-verifies a service.
- Lower the TTL 24–48 hours ahead. Set the records you plan to change to a short TTL (300 seconds is common). Because resolvers cache the old TTL, this only helps if you do it before the change.
- Pick a low-traffic window — mid-week, off-peak, never right before you're unavailable.
- Copy the exact target values from the provider rather than retyping them. DNS is unforgiving of typos and trailing-dot mistakes.
- Write the rollback in advance. One line per record: "if X breaks, set
name/typeback toold value."
How do you change nameservers at your registrar?
- Build the zone at the new DNS provider first. Recreate every record from your inventory — including MX and TXT. Don't skip email records because "we're only moving the website."
- Test the new zone directly before delegating to it.
dig @ns1.newprovider.com yourdomain.com Areturns what they'd answer without any live traffic depending on it. - Log in to the registrar — the company the domain is registered with, not your host — and find the domain's nameserver settings.
- Replace the nameserver entries with the ones the new provider gave you (usually two to four). Save.
- Leave the old zone intact for a week. While the change filters through, some resolvers still reach the old nameservers; if that zone is gone, those visitors get failures.
- Verify, then restore TTLs once traffic and mail look normal.
Two constraints worth knowing. A registrar transfer lock (clientTransferProhibited) blocks moving the domain to another registrar — not nameserver or record changes. ICANN's 60-day transfer restriction after a registration or registrar transfer likewise applies to registrar transfers, not DNS edits.
How do you edit a single DNS record?
- Open the zone editor at the provider your current nameservers point to. Editing records at your registrar while nameservers point elsewhere does nothing — a very common source of confusion.
- Find the exact record: match name and type, not just the name.
- Change one record and save. Batched edits make a breakage unfindable.
- Wait for the old TTL to expire, then verify.
- Move to the next record only once the previous one is confirmed good.
Watch the CNAME rule: a CNAME can't coexist with other records on the same name, which is why a root domain that also needs MX records generally can't take one. If a provider offers a CNAME target for your apex, they usually mean their own flattening/ALIAS record type.
How do you verify the change actually worked?
Your own browser is the worst possible test — it caches aggressively, as do your OS and router. Verify from outside.
- Query a public resolver directly:
dig yourdomain.com A @1.1.1.1ornslookup yourdomain.com 8.8.8.8, bypassing your local cache. - Check the record type you changed, not just the site:
dig yourdomain.com MX,dig yourdomain.com TXT. - Confirm delegation after a nameserver change:
dig yourdomain.com NSshould return the new nameservers once the TLD refresh propagates. - Send and receive a real test email after any MX or mail-TXT change. Records looking right isn't the same as mail flowing.
Expect a window where some people see the old answer and some the new one. That is propagation working as designed, and it is not something you can force. If you're changing DNS as part of a larger move, the domain migration guide covers the redirect and indexing side that DNS alone doesn't handle.
When should you roll back?
Roll back when a service that was working is now failing after the old TTL has fully expired and the failure is reproducible from an external resolver. Before that point you're most likely looking at cache, not breakage — and rolling back mid-propagation just adds a second stale value to the mix.
To roll back, re-enter the old value from your inventory, or point nameservers back at the previous provider. Rollback obeys the same TTL rules, so it isn't instant either — the second reason to lower TTLs beforehand.
FAQ
How long does a DNS change take to take effect?
It depends on the TTL of the record you changed. Resolvers serve the cached answer until it expires, so a 300-second TTL propagates in minutes while a 24-hour TTL can take a full day. Nameserver changes also depend on the TLD registry refreshing your delegation. Lowering TTLs a day ahead is the only reliable way to speed this up.
Do I change DNS at my registrar or my hosting provider?
At whichever one your nameservers point to. Nameservers themselves are always set at the registrar. If those nameservers belong to your host, you edit records in the host's panel; if they're the registrar's defaults, you edit them at the registrar. Editing in the wrong panel has no effect at all.
Will changing DNS affect my email?
Only if you change email-related records — MX, and the TXT records holding SPF, DKIM, and DMARC. Editing an A record for your website leaves mail alone. But a nameserver change moves everything at once, so mail breaks if you didn't recreate the MX and TXT records at the new provider before switching.
Does WHOIS privacy or a domain lock stop me from changing DNS?
No. WHOIS privacy only masks registrant contact details in public lookups, and a transfer lock only prevents moving the domain to a different registrar. Neither affects nameserver or record changes. You'd only unlock a domain for an outbound registrar transfer.
Can I change DNS on a domain that's expired?
Not reliably. Past its expiry date a domain typically stops resolving and enters a grace period, then redemption — where restoring it usually requires a redemption fee and DNS won't behave normally meanwhile. Renew first, confirm the domain resolves, then make DNS changes.
Next step
DNS changes go wrong for procedural reasons far more often than technical ones. Know which layer you're changing, lower TTLs before you act rather than during, keep a written copy of the zone, change one thing at a time, and verify against an external resolver instead of your browser. That routine turns DNS from a source of outages into a boring, repeatable task. For the record types themselves, see understanding DNS records; for wiring a domain to a server the first time, see connecting a domain to hosting. For more vendor-neutral guidance on domains and search visibility, visit myqsd.com.