01What is a CNAME record?
An alias: it says this name is just another name for that one. A resolver that finds a CNAME restarts the lookup at the canonical name, and the alias inherits whatever records the target has.
Enter a hostname — typically a subdomain like www or shop — and we query its CNAME record live to show which canonical name it aliases.
An alias: it says this name is just another name for that one. A resolver that finds a CNAME restarts the lookup at the canonical name, and the alias inherits whatever records the target has.
Because it cannot have one. RFC 2181 section 10.1 says a name carrying a CNAME may hold no other data, and a zone apex must hold SOA and NS records — so the two cannot coexist. Providers that appear to offer apex aliases implement flattening on their own servers instead.
No. A CNAME points to another name, never to an address. The chain has to end at a name that carries A or AAAA records.
It adds one more resolution step per link in the chain, which is usually negligible once cached. Long chains of aliases, though, multiply the places a lookup can fail.
No. The query is forwarded to a DNS resolver and the answer is returned in this response only.
On macOS or Linux, dig CNAME www.example.com +short returns the alias target. Windows ships nslookup instead, where nslookup -type=CNAME www.example.com prints a line reading canonical name followed by the target. Both ask a resolver exactly what this page asks it; what the command does not do is tell you what an empty answer means, which is the reason the explanations above exist.
Aliases end at real address records, so the natural next looks are the full DNS record set and the IP the chain resolves to.