DNS is for associating various information with domain names, and looking that information up. Yes, the most popular information to associate with a domain name is IPv4- and IPv6-addresses via A and AAAA fields; but CNAME records exist as well, you know.