Reuse a connection for multiple queries
04Persistent connections amortize TCP and TLS establishment and support multiple exchanges.
An idle close requires reestablishing before later queries.
Key idea: Avoid a new handshake for every DNS question when a connection is reusable.
Rules & examples
Avoid a new handshake for every DNS question when a connection is reusable.
- Avoid a new handshake for every DNS question when a connection is reusable.
- Idle close and reestablishment require resource and timeout management.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
Sources
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.