how/network
The browser wants example.com, but the internet only understands IP addresses. Someone has to turn the name into a number, and a hierarchy of servers does it.
You type example.com into the browser and see a page. But
the internet works by IP addresses, not by names. Somewhere in the middle
the name example.com became a number like 93.184.216.34.
Who did that?
DNS (Domain Name System) did it: the big global "phone book" of the internet. It is built in a clever way, though: no one stores the whole book. The address of each name is known to only one specific server, but we do not know which one. So DNS works through a hierarchy of servers that we query in turn, from general to specific.
Press ▶ and watch how one request, "give me the IP for example.com", unfolds into four network round trips and why the second time the answer comes back instantly.
The browser opens a connection. To know where to go, it needs an IP. The stack checks "who is our resolver?" (the address usually arrived via DHCP) and is about to send it a DNS query on UDP/53.
The local resolver is either a service in your OS
(systemd-resolved on Linux) or a separate server
(1.1.1.1, 8.8.8.8, a corporate one).
recap
What to remember:
/etc/resolv.conf (the classic) or resolvectl status
(systemd-resolved). Popular public ones: 8.8.8.8 (Google),
1.1.1.1 (Cloudflare)ping google.com hangs while ping 8.8.8.8
respondsIf you want to get hands-on with DNS, there is the intermediate-04-dns
lesson with the dig command and packet sniffing. And the dns-resolution article in
the knowledge base with the detailed packet structure.