What does DNS do and what happens when you type a URL into a browser?
BeginnerConceptDNS
Answer
DNS translates names to IP addresses. The browser checks its cache, then the OS cache and /etc/hosts, then asks the configured recursive resolver. The resolver, if it has no cached answer, walks the hierarchy: root servers, the TLD servers (.com), then the domain's authoritative servers, and returns the answer to the client, caching it for the TTL.
Only after that does the TCP and TLS work to the returned IP begin.
More on DNS
What are the common DNS record types?BeginnerWhat is the difference between a recursive resolver and an authoritative server?IntermediateExplain the DNS resolution chain step by step with dig.IntermediateWhat is TTL in DNS and how does it affect changes?BeginnerWhat is negative caching in DNS?IntermediateWhy can't you use a CNAME at the zone apex?Beginner