dns cname or alias?
is it so right
CNAME
When someone types www.test.de into their browser, the DNS server returns a response for www.anotherdomain.com . The web browser then performs another DNS query for www.anotherdomain.com to obtain the IP address.
However, the process is different for alias records. Instead of returning a response for www.anotherdomain.com , the authoritative DNS server performs the second resolution and returns only the IP address or A record.
If there is an alias and a matching A entry, the corresponding server
displays the same page, say index.html
There are some features where an alias is dissolved. For example, Cname flattening. But this is not standard, but provider-dependent.
A CNAME does not necessarily have to resolve the client that can also make a resolver. But it is of course more complicated compared to the fact that the authoritative server delivers the right answer. Well, that’s what you described.
So to make it short, CNAME is standard, aliases not. CNAME must not be on the top level of the domain, but it works via such an alias feature. CNAME is “visible” outwards, aliases not.
Important: in both variants, the browsers show the same, it is only in the technical differences in the DNS.
Application software usually does not implement a recursor (recursive resolver). The client typically asks such a stub, possibly indirectly via a stub.
For CNAME RRs:
The RHS itself can also be an LHS of a CNAME.
There are some basic exceptions that can be found easily in the standard.
you have already given the answer in your post. And probably you have this from this page, where this is described in a comprehensible way:
https://easydmarc.com/blog/de/cname-vs-aliass-eintraege/