Let's a hostname is HelloWorld.com
, and it has a alias name hw.com
, so when the application on my host want to know the ip address of hw.com
, this DNS query goes to the Authoritative DNS server of HelloWorld.com
.
Is my understanding correct:
1.the Authoritative DNS server has a CNAME type record e.g. (hw.com, HelloWorld.com, CNAME)
to associate alias hostname and canonical hostname.
2.When Authoritative DNS server receive the query, it first check all CNAME record that has alias hostname to be hw.com
so it retrieves canonical hostname HelloWorld.com
, then it uses this canonical hostname to get and return ip adress by locating the Type A record (HelloWorld.com, 145.37.93.126, A)
so basically the Authoritative DNS server does two queries internally?