Authorative can have cname as well in cname we dont have to mention ip right but other dns name
Yes, that's correct. When a DNS resolver queries authoritative name servers for a domain, the authoritative name servers respond with various types of DNS records, including A records (for IPv4 addresses), AAAA records (for IPv6 addresses), MX records (for mail servers), TXT records (for miscellaneous text data), and more.
Regarding CNAME records specifically, authoritative name servers can indeed respond with CNAME records. A Canonical Name (CNAME) record is used to alias one domain name to another. Unlike A or AAAA records, which directly provide IP addresses, a CNAME record simply points to another domain name. This allows a domain to resolve to the same IP address as another domain without specifying the IP directly in the DNS record.
For example, let's say you have two domains, "example.com" and "www.example.com". You can set up a CNAME record for "www.example.com" pointing to "example.com", indicating that "www.example.com" is an alias for "example.com".
Here's how it works:
When a DNS resolver queries the authoritative name servers for "www.example.com", the authoritative name servers respond with a CNAME record indicating that "www.example.com" is an alias for "example.com".
The resolver then performs another DNS lookup for "example.com" to resolve its IP address.
Finally, the resolver receives the A or AAAA record(s) for "example.com" containing the IP address(es) associated with that domain.
So, while CNAME records don't directly provide IP addresses, they allow one domain to resolve to the same IP address(es) as another domain by aliasing them together.