Chapter 10UDP in the Wild: DNS
DNS is the first protocol we’ll explore that sits one layer above TCP and UDP. It’s a somewhat simple but ubiquitous protocol, so knowing how it works will give you a better understanding of networks in general. It’s also very flexible. While the DNS protocol is not necessarily tied to UDP, the vast majority of DNS traffic happens over it. DNS was designed to work over both TCP and UDP protocols, but it’s generally recommended that standard DNS queries happen over UDP and only fall back on TCP for larger packets and some other cases. With DNS, you’ll see how a real-world protocol makes accommodations for UDP’s lack of guarantees, which we explored in the past couple of chapters.
This chapter is a bit different ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access