Independent, non-commercial site. Not affiliated with, sponsored by, or endorsed by GoDaddy Inc. GODADDY is a trademark of its owner.

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

Figure 1. The delegation chain. Three boxes in a row: on the left "Registry for the extension", in the middle "Nameservers listed for your domain", on the right "Your zone: website and mail records". An arrow runs from the registry box to the nameserver box, labelled "NS records published by the registry". A second arrow runs from the nameserver box to the zone box, labelled "Answers come from here".

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

Figure 2. Prepare the new zone first. The zone box is duplicated: an "old host" copy on top and a "new host" copy underneath, with a checklist beside the new copy: website records, mail records, verification TXT records, subdomains.

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.

Figure 3. The switch at the registrar. A control-panel form with two fields marked "Nameserver 1" and "Nameserver 2". The old values are crossed out and the new host's names are written in. A note reads: "Use the exact names your new host gives you".

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.

Figure 4. The overlap period. A timeline with a shaded band. Before the band, all arrows go to the old host. Inside the band, some arrows go to the old host and some to the new one. After the band, all arrows go to the new host. The band is labelled "cached answers expire at different times".

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

Figure 5. The confirmation check. A lookup result showing the domain's listed nameservers, each now matching the new host, with a tick beside each.

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.

Sources