Looking Up CNAMEs

At times you may want to look up a CNAME record itself, not data for the canonical name. With nslookup, this is easy to do. You can set the query type either to cname or to any and then look up the name:

C:\> nslookup 
Default Server:  wormhole.movie.edu 
Address:  192.249.249.1 

> set query=cname 
> bigt 
Server:  wormhole.movie.edu 
Address:  192.249.249.1 

bigt.movie.edu  canonical name = terminator.movie.edu 
> set query=any 
> bigt 
Server:  wormhole.movie.edu 
Address:  192.249.249.1 

bigt.movie.edu  canonical name = terminator.movie.edu

Get DNS on Windows Server 2003, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.