Can a CNAME record point to a domain handled by another DNS server?
Assume a CNAME record pointing to a domain name that is handled by a different server than the one the CNAME record resides on. For example
- domain
aaaaaaaa.com
has authoritative name serverdns.aisp.net
- its zone file contains record
www 7200 IN CNAME www.bbbbbbbb.com
- domain
bbbbbbbb.com
has authoritative name serverdns.bisp.org
- its zone file contains record
www 7200 IN A 222.222.222.222
Is it fine that dns.aisp.net
is not the authoritative domain server for bbbbbbbb.com
pointed to by the CNAME record, and contains no information about bbbbbbbb.com
or www.bbbbbbbb.com
? Will it prevent any modern software/browser/OS from accessing www.aaaaaaaa.com
? I can restrict to http and https, if that helps.
Solution 1:
Is it fine that dns.aisp.net is not the authoritative domain server for bbbbbbbb.com pointed to by the CNAME record, and contains no information about bbbbbbbb.com or www.bbbbbbbb.com?
Yes. This is fine.
Will it prevent any modern software/browser/OS from accessing www.aaaaaaaa.com?
No.
As HBruijn mentions in his comment, the CNAME can point to anywhere. If you owned the domain example.com
, you could create a CNAME for notmydomain
which points to www.example.org
which you don't own/manage and users pointing their browser to notmydomain.example.com
would connect to www.example.org