Locate the sources of avoidable DNS delay and fix them in the right order.
This is the practical bridge between how DNS works and how to improve it. It lists the places where delay most often hides, what each looks like, roughly what it costs, and the usual fix.
|
Source |
What it looks like |
Typical cost |
Fix |
|
CNAME chains |
Three or more aliases before an address is returned |
20–80 ms on a cold lookup |
Flatten at the apex; question every managed-service alias |
|
Cold cache misses |
The first lookup of a session pays the full path cost |
50–300 ms, depending on client location |
Longer TTLs on stable names; prefetch known-popular names |
|
Distant authoritative servers |
All authoritative sites sit in one or two regions |
100–250 ms for far-away clients |
Anycast, or secondary providers with sites near your users |
|
Negative-cache misconfiguration |
Random-subdomain queries reaching authoritative servers |
Extra load, rather than user delay |
Tune the SOA minimum; absorb at the resolver layer |
|
Resolver-side surprises |
Clients behind resolvers that ignore or clamp your TTLs |
Unpredictable and invisible without measuring |
Measure from real client networks; design for a range, not a single value |
Read the table from top to bottom as an order of work. The first items are configuration: they are free, reversible and quick. The later items are procurement or engineering. Chain flattening is the clearest example. It costs nothing, and multi-step chains are very common because every managed service you adopt tends to add one more alias.
Cold-cache cost is the item that surprises teams most, because it is invisible in overall averages yet dominant for new sessions, and new sessions are exactly where a slow first impression costs money. Negative-cache misconfiguration is worth separating out because it is not a speed problem for users at all. It is a load problem that can turn into an availability problem during a random-subdomain attack, which Module 6 covers.
The last row is the humbling one. Real resolvers include a long tail of behaviour that does not match the textbook, including ones that squeeze your TTL into their own limits (Schomp et al., 2013). You design for a spread of behaviours, and you find that spread only by measuring.
KEY TAKEAWAY Fix the free things first: flatten chains and differentiate TTLs. Then distribute your servers. Only then consider prediction. Most teams run this list backwards.
