DNS is the system used to map names of servers and services into IP addresses that can be used to find computers
What happens when you have a CNAME and a MX record for the same domain is not clear - this post is a quick explanation.
This post describe the more common types of DNS records
DNS is structured as a tree of names. This post explain it and how it works