dig +short CNAME www.example.com

Category: Web Servers & Proxies

dig +short CNAME www.example.com

Resolve a CNAME alias to its target

Shows where the www.example.com CNAME (an alias record pointing at another name) leads, such as example.com or a CDN hostname. Useful to understand redirects and third-party hosting setups. A blank result means the name is not a CNAME.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.