Networking, DNS & TLS
DNS caching and TTL
Explain how a TTL limits how long a cache keeps a record, why each cache counts down its own copy, and why a DNS change takes up to the old TTL to reach everyone.
What you will be able to do
- Explain why a cache keeps an old answer until its own TTL count reaches zero.
- Decide how far in advance to lower a TTL and how long to keep the old server running.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- UDP behaviorAdvanced · 4 min
Explain what the UDP header contains and what UDP leaves out, such as acknowledgement and retransmission, and how to find datagrams dropped silently at a full receive…
- DNS recursive resolutionAdvanced · 4 min
Explain how a recursive resolver follows referrals from the root to the zone's name servers and caches each step, and how to find the slow step with dig.
- Split horizon DNSAdvanced · 4 min
Explain how split-horizon DNS gives different answers for one name, depending on the resolver and the network a client uses, and how to check which view a client gets.
- DNSSECAdvanced · 4 min
Explain how DNSSEC signs DNS data with RRSIG and DNSKEY records, how the DS record links a zone to its parent, and why it provides integrity but not confidentiality.
- TLS handshakeAdvanced · 5 min
Explain how a TLS 1.3 handshake sets up keys and checks the server's certificate, and use SNI and openssl s_client to find where a connection fails.
- Certificates and PKIAdvanced · 4 min
Explain how a certificate chain links a leaf certificate to a trusted root, and check a chain with openssl before a CA rotation goes live.