Changing Nameservers, Figure by Figure
Moving a website or email to a new provider often means changing the domain's nameservers. The task takes seconds in a control panel, but the effect spreads gradually. This tutorial explains it through a series of described figures. Picture each one, or sketch it on paper as you go.
The starting picture
The registry does not store your website address or mail settings. It stores which nameservers are authoritative for your domain. Those nameservers hold the zone: A, AAAA, MX, TXT and other records. Your registrar is the party that tells the registry which nameservers to publish.
The steps, with figures
Step 1. Recreate every record at the new DNS host before changing anything at the registrar. Export the old zone if your provider allows it. Missing mail records is the most common cause of lost email after a move.
Step 2. In the registrar account, replace the nameservers with the ones the new host supplies. Save. The registrar sends the update to the registry, which usually publishes it quickly.
Step 3. Wait. Resolvers around the internet cache the old nameserver answer for as long as its time-to-live (TTL) allows, which is often a day or two at the parent level. During this overlap, some visitors reach the old host and some the new. Keep the old host's zone running and unchanged until the band has passed.
Checking it worked
Step 4. Run an RDAP lookup or a DNS query for the domain's NS records and confirm they show the new nameservers. Then query the website and mail records directly against the new nameservers. Send a test email both ways.
- If the domain is DNSSEC-signed, update or remove the DS record in the right order; a mismatch breaks resolution.
- Lowering record TTLs at the old host a day or two in advance can shorten the overlap for records inside the zone.
- Do not cancel the old host until the overlap is over and mail has been checked.
Sources
- IETF, RFC 1034 and RFC 1035 (DNS concepts and specification)
- IETF, RFC 2181 (clarifications to the DNS specification, including TTLs)
- ICANN, registrant educational materials on DNS