TCP vs UDP
Why does DNS traditionally use UDP for normal queries?
Choose one answer
Queries and answers are small, and a lost packet can simply be retried, so UDP skips TCP's connection setup.
TCP can't carry DNS messages larger than 512 bytes, so the protocol was designed around UDP and only uses TCP for zone transfers.
UDP guarantees in-order delivery, which keeps multi-record answers in the right order.
UDP encrypts the query, so resolvers on the path can't read the names you look up.