- Home
- Tools
- Network Tools
- DNS Lookup
- CNAME Lookup
CNAME Lookup
Check whether a name such as www or shop is an alias of another name, and which name it points to.
What a CNAME does
A CNAME record makes one name an alias of another. Whoever asks for shop.example.com is told to look at shops.myshopify.com instead and continues there. The alias holds no address of its own, so when the target moves to another server every alias follows, without anyone touching it. That is why hosting companies and CDNs ask you to create one.
An answer has a single field: the target name. A target can be an alias itself, and a resolver follows the chain to its end. If the name you look up is not an alias the answer is empty, which is the normal case for most names.
The rules that trip people up
- No CNAME on the bare domain.
example.comitself has to carry NS and SOA records, and a name with a CNAME may not have any other record. For the bare domain, DNS providers offer a substitute under names such as ALIAS, ANAME or "CNAME flattening". - Nothing next to a CNAME. For the same reason an alias cannot also have an MX or a TXT record. Where a control panel accepts the combination anyway, resolvers follow the alias and never see the other records.
- MX and NS records must not point at an alias. They have to name a host that has an address record.
- The target is a host name, not a web address.
https://example.net/shopis not a valid target. A CNAME cannot send visitors to a path on another site; that takes a redirect on a web server.
The DNS lookup page asks for all record types of a name at once, and explains TTLs, DNSSEC and which resolver gives the answers.