when we type
www.yahoomail.com in a browser it is redirected to mail.yahoo.com , please tell me how this is achieved , and when we dig for certain websites we get a number of related subdomains as well in the answer and authority sections , but when i dig the domains on my DNS server i get reported on only the domain or subdomain i dig for.Please tell me how these are achieved using the DNS server.