DNS is a distributed database that translates hostnames to IP addresses. It operates through a hierarchy of root servers, top-level domain servers, and authoritative name servers. DNS provides additional services like load balancing and mail server aliasing. Queries are resolved through recursive or iterative lookups between clients and servers to map names to addresses.