All posts
Internet Fundamentals

DNS for App Builders: Records, TTLs, the Apex Problem, and Why "Propagation" Is Caching

By

October 26, 2026

7 min read

What each DNS record does, why you cannot put a CNAME on your bare domain, why DNS changes seem to take hours, and how to stop the domain itself becoming your single point of failure. With Route 53 prices and the January 2025 switch from WHOIS to RDAP.

Internet Fundamentals
DNS
Domains
Amazon Route 53
Cloudflare

Three different companies can be involved in your domain, and mixing them up causes most DNS trouble. The registrar is where you bought the name and renew it. The DNS host answers queries for it, chosen by the NS records set at the registrar. The hosting provider runs your app. They can be one company or three.

The records you will actually use

Record

What it does

Typical use

A / AAAA

Points a name at an IPv4 / IPv6 address

A server with a fixed address

CNAME

Makes a name an alias of another name

www pointing at your platform's hostname

ALIAS, ANAME or CNAME flattening

Provider features that act like a CNAME but answer with addresses, so they work on the bare domain

example.com pointing at CloudFront, a load balancer or a platform

MX

Where the domain's email is delivered

Google Workspace or Microsoft 365

TXT

Free text, used for verification and email authentication

SPF, DMARC, domain verification for Google, Stripe and others

CAA

Which certificate authorities may issue for the domain (RFC 8659)

Allow only Amazon and Let's Encrypt

NS

Which DNS host is authoritative

Changed at the registrar when you move DNS

Why you cannot CNAME the bare domain

A name with a CNAME cannot have any other records (RFC 1034, clarified in RFC 2181). The bare domain, or apex, must have NS and SOA records, so a CNAME there is invalid. Platforms that tell you to CNAME to their hostname are describing www, not example.com.

  • Use your DNS host's alias feature: Route 53 alias records, Cloudflare CNAME flattening, or ALIAS/ANAME elsewhere.

  • Or point the apex at the platform's published IP addresses, and accept updating them if they change.

  • Or redirect example.com to www.example.com and CNAME www. The most portable option, at the cost of one redirect on the first visit.

Want a second opinion on this for your system?

Book a free 30-minute call. You'll leave knowing what we'd do first and roughly what it costs, whether or not you hire us.

"Propagation" is caching

Nothing is pushed around the internet when you change a record. Resolvers that looked it up recently keep the old answer until its TTL (time to live) expires. A record with a TTL of 86,400 seconds can be served stale for a day after you change it.

  1. At least one old TTL before a planned change, lower the TTL on the records involved to 300 seconds.

  2. Wait for the old TTL to pass, so every cache holds the short one.

  3. Make the change, check it, and keep the old target running until traffic has moved.

  4. Raise the TTL again afterwards. Longer TTLs mean fewer queries and more tolerance of a bad day at your DNS host.

Where to host DNS

Registrar DNS

Cloudflare

Amazon Route 53

Price

Usually included

Included in the Free plan

$0.50 per hosted zone per month, $0.40 per million queries; alias queries to AWS resources free

Fits

A simple site that rarely changes

You also want Cloudflare's proxy, CDN or DDoS protection

The app runs on AWS and you want records in the same infrastructure code

Watch for

Limited record types, no API, no apex alias

Proxied records change how TLS, caching and client IPs work

Health checks and routing policies are billed separately

Protect the domain itself

  • Turn on auto-renew and keep a valid card on the registrar account. An expired domain takes down the app, email and every sign-in link at once.

  • Turn on registrar (transfer) lock so the domain cannot move without you.

  • Protect the registrar login with strong MFA. Whoever controls DNS controls your email, and therefore every password reset.

  • Keep the account in the company's name with a shared admin mailbox, not a founder's personal email.

Since January 28, 2025, ICANN has made RDAP the definitive source of registration data for generic top-level domains, replacing the WHOIS protocol. Lookup tools look much the same; expect contact details to be redacted for privacy either way.

hoolco Monthly Review

Once a month: what changed in tech that month and what it means for you, from cloud and AI to security and the tools you build with. Every item links to its source. No sales pitch, unsubscribe in one click.

As of October 26, 2026. Provided as is, for general information, and accurate to the best of our knowledge on the date shown. Not legal, compliance, tax, financial or other professional advice. Prices, limits and vendor services change; check current vendor documentation before relying on anything here. Terms of use.