Verify a DNS Cutover Before Retiring the Old Endpoint

Published · System Administration

You changed the DNS record. The dashboard says the change is complete. Your laptop connects to the new load balancer. How much of that evidence helps you decide whether to shut down the old one?

A DNS cutover has three observable results. The authoritative servers publish the intended records, clients start resolving the intended addresses, and the new endpoint takes over the work. Each result answers a different question. Keep both endpoints available until you have evidence for all three and know how long you still need the old one for rollback.

Consider a move of api.example.com from 192.0.2.10 to 198.51.100.20. Those are documentation addresses. Substitute your own addresses, authoritative servers, and validation route when adapting the examples.

Make both endpoints capable of serving the hostname

Before publishing anything, test the new address with the hostname customers actually use. A request to the IP alone can select a default TLS certificate or virtual host. Use curl's address override to connect to the chosen IP while keeping the URL hostname for TLS and HTTP.

curl --resolve api.example.com:443:198.51.100.20 \
  --fail --show-error --silent --max-time 10 \
  https://api.example.com/health

A healthy response establishes that this probe could connect, verify TLS, and reach the route. Inspect the status and body you actually expect, including any unexpected redirect. Follow up with a safe representative request that exercises routing, authentication, and the dependencies that matter. Probe from relevant networks and test IPv6 separately if the service publishes AAAA records. If the new endpoint sits behind a private ingress, run the appropriate probe from an authorized client network. For TLS coverage across regions and listeners, use the certificate renewal verification checklist.

Check that both endpoints can operate against the same current application state. For example, if they accept writes, they need a shared source of truth or a migration design that handles concurrent writes safely. An old load balancer that still answers HTTPS can be useless for rollback if its backend can no longer read the data. Review rollback compatibility before the change.

Lower TTL ahead of the cutover

Record the current answers and TTLs before changing them. Include A and AAAA records and any CNAME chain that selects the endpoint. Check public and private views if the hostname uses split DNS. Where the provider synthesizes answers or deliberately varies them by geography, write down what you expect each client population to see.

Suppose the old A record has a TTL of 3,600 seconds. Set it to 300 seconds and verify that the lower TTL is published. Allow the previous one-hour TTL to age out after the change reaches the authoritative servers before moving the address. A resolver that cached a one-hour answer just before the update can still use it for nearly an hour. Lowering the TTL is preparation for the cutover, and it only helps records you actually changed.

Avoid deleting the name and recreating it as separate cutover steps when the provider can update it in place. Resolvers can cache a name error or a no-data response. Under some refresh failures, resolvers may also serve expired records. That makes the planned TTL useful for setting an observation window, with room for behavior beyond that window. DNS negative caching, DNS serve-stale

Check what the authorities published

After the update, query each authoritative server for the zone, using the appropriate vantage point for that DNS view. For this example, ns1.example.net stands in for one of those servers. Repeat the queries for the others.

dig @ns1.example.net api.example.com A +norecurse
dig @ns1.example.net api.example.com AAAA +norecurse

Look at the response code, the authoritative answer flag (aa), the answer records, and their TTLs. Confirm that the records match the intent, including whether AAAA should have an answer at all. If the reply points to a CNAME in another zone, inspect the target through its own authority as needed. A provider's control plane can show the requested change while serving infrastructure is still catching up. If the authorities disagree unexpectedly, pause the cutover and investigate before interpreting recursive samples as a caching issue.

Observe client resolution and traffic together

Query the recursive resolvers your clients rely on. Run the first command from relevant client networks and use the second to check a specific configured resolver. The address in the second command is another placeholder.

dig api.example.com A
dig @192.0.2.53 api.example.com A

Repeat for AAAA where applicable. Record the timestamp, client network, resolver, answer, and remaining TTL. Sample your office or VPN resolver for internal clients, the cloud resolvers used by workloads, and external vantage points for public users. Check the application path as well if clients use their own DNS cache, encrypted DNS, or a proxy. A few agreeing resolvers show that those paths moved. There is no practical poll of every client cache.

At the same time, compare requests, errors, and latency at both endpoints, with separate labels for old and new. Track active long-lived connections where relevant. A streaming client can stay connected without another DNS lookup, and a low-volume scheduled integration might only appear overnight. Distinguish those clients from health checks, scanners, and synthetic probes. If a real integration still reaches the old endpoint after the expected cache window, find its owner and check for pinned addresses or connection reuse before taking the endpoint away.

Decide what earns retirement

Write the criteria before the cutover. For the example migration, an acceptance record could read like this:

  • Authoritative answers match the intended records and each required client network has a successful request through its ordinary resolution path.
  • The new endpoint meets the existing service error and latency targets under normal load, including the expected peak.
  • Old-endpoint traffic is accounted for over a window that covers the slowest known client cadence. Any remaining supported clients have an explicit migration or drain plan.
  • The rollback window has closed or the service owner has approved an alternative recovery path.

If the new endpoint fails the agreed thresholds, restore the known-good DNS records and verify them at the authorities and through client resolvers. Keep the new address operational where possible because some clients will still have it cached or be connected to it. If the infrastructure allows it, have the new listener forward to the healthy backend during recovery. DNS can change the next address a client looks up. It cannot recall an answer or move an open connection.

Retire the old endpoint in steps. Drain it where the infrastructure supports that, watch errors from the retained client probes, and release the old address only after the service owner signs off. Restore the steady-state TTL once the change is settled. The strongest retirement signal is that the new endpoint has carried the work you expected it to carry and you can explain what was still reaching the old one.

Read more infrastructure and engineering guides on Slaptijack.

Slaptijack's Koding Kraken