Back to home

Tech note

DNS tricks for faster validation

When DNS changes are in flight, the hard part is usually not making the change. It is proving what your machine is actually resolving without waiting on the whole internet.

This note is still useful when I need to compare a new hosted zone against an existing configuration or sanity-check a Route 53 update.

Workflow

Cheaping out on the right things

Use a cheap registrar if you want, but keep DNS management in Route 53.

You can buy a low-cost nameserver on a provider like NameSilo while still delegating the actual hosted zone to Route 53.

See the AWS migration guide.

Commands

Fast validation on macOS

Temporarily point your resolver where you want it, test, then revert.

On a Mac, networksetup -setdnsservers Wi-Fi is handy when you want to see DNS behavior quickly. When you are done, networksetup -setdnsservers Wi-Fi Empty restores the defaults.

Note: setting specific name servers can cut you off from the rest of the internet while you are testing. That is useful when you know what you are doing and annoying when you do not.

host -t TXT bellagrams.org

The broad workflow is simple: create the hosted zone, lower TTLs when you need to move quickly, point your machine at the target DNS servers, and then confirm the text record you expect is actually visible.

  1. Create the hosted zone entry in Route 53.
  2. Lower the TTL on your A and NS records in both the new and old systems.
  3. Point macOS at the Route 53 DNS servers with networksetup.
  4. Validate local resolver settings with cat /etc/resolv.conf.
  5. Use host -t TXT to inspect the hostname you are testing.
  6. Add a TXT record with something recognizable like "Hello, world!".
  7. Confirm the propagated value with the same host command.
  8. Revert the resolver back to Empty when you finish.

You can also compare propagation across public resolvers with whatsmydns.net.

Copyright 2026 Tom Weissinger