UDP cheap. UDP alone is not reliable, but higher level protocols - like DNS - can support reliability, for example. repeating the UDP datagram if there is no response.
But the latter does not apply to DNS . DNS itself sometimes uses, in addition to UDP (as the main protocol), a reliable transmission control protocol ( TCP ).
The latter is used when the size of the response data exceeds 512 bytes and for tasks requiring reliable delivery (for example, zone transfer).
In addition, there are some resolver implementations that use TCP for all requests.
Mariand
source share