Domain Name System (DNS) maps a name onto an IP address.
An application program call a library procedure called the resolver, passing name as a parameter.
The resolver sends a UDP packet to a load DNS server, which then looks up the name and returns the IP address to the resolver, which then returns it to caller.
So DNS uses transport layer protocol UDP.