How DNS Works 00:00:01 A name the laptop has never seen A traveler opens a new website. The laptop knows its configured resolver, and the resolver has no cached delegation for this example. Follow the first lookup out to the domain's own authority. You type www.example.com. One recursive question leaves your computer. The reply is a referral to a com server. Referral to ns1.example.com, with its address as glue. The owner's server has the record. Resolver, system and browser keep the answer. You connect. A cold lookup may involve multiple exchanges by the resolver. Once it has the address, the browser can start connecting to the service, which is a separate job from naming it. 00:00:45 Ask someone to finish or ask for the next direction Revisit that walk from the viewpoint of the laptop and then the resolver. Which machine expects a finished answer, and which one follows referrals? You want the final answer and will wait for it. The reply is a pointer, not an address. Another pointer. Now a real answer, which becomes the reply to the first row. Recursion describes who takes responsibility for obtaining the answer. Iterative exchanges can return progressively more specific directions until an authoritative server supplies the requested record. 00:01:17 The cached answer that says no A new service name does not exist when the resolver first asks. The owner creates it thirty seconds later. Predict what someone using the same resolver may see. www is not cached, so the resolver walks and stores the answer for an hour. Ten seconds later the answer comes from the cache with the time that is left. The name new does not exist. The no is stored for 900 seconds. The owner creates new at 30 s. The cache still says no at 60 s. After the 900 seconds the resolver asks again and finds it. Positive and negative answers can each stay cached for their applicable lifetime. Publishing a record does not force every existing negative entry to vanish immediately. 00:02:03 Follow the chain of signatures A validating resolver starts with a configured trust anchor. Trace how a parent links a signed child zone to a key and how the answer itself gets authenticated. A validating resolver starts with the root's public key. The root's signed DS record holds the fingerprint of com's key. com's signed DS record does the same for the owner's key. The answer carries a signature made with that key. A changed record or an expired signature fails. The resolver answers SERVFAIL and not a lie. DNSSEC helps verify authenticity and integrity of signed DNS data. It does not encrypt the answer, establish that the site is trustworthy, or create a secure web connection. 00:02:46 Only some customers reach the replacement One launch moved the site's IPv4 address. Some visitors connect immediately while others keep reaching a retired machine. Inspect both address families before blaming everyone's resolver. The name has an A and an AAAA record. Both kinds of user connect. The IPv4 address was updated. The AAAA record still points at a machine that is gone. Ask for A and AAAA separately and test each address. Update or remove the AAAA record, then wait for its TTL. Query the address records separately and test connectivity to each returned destination. Watch the old records' remaining lifetimes so a repaired publication is distinguished from a still-cached answer.