3 ms·
UDP's semanatics are faster for small (<= 1MTU) transactions since there is no connection state and no handshaking. Further, at the time DNS was designed, TCP
by ChuckMcM 16y ago
UDP's semanatics are faster for small (<= 1MTU) transactions since there is no connection state and no handshaking.
Further, at the time DNS was designed, TCP was not considered 'scalable' since each TCP connection required its own file descriptor and computers at the time struggled with even 64 file descriptors per process. As DNS was not distributed at the zone level (it was replicated but each replica had the full zone contents of those zones they mirrored).
These days UDP is still faster for small packets but as others have pointed out DNS switches to TCP for bigger requests.