Forum Discussion
Frabotta9500
Sep 21, 2023Cirrus
I believe that what you want to do is use a single DNAME record that will effect the multi-CNAME behavior you want to implement.
Specifically, in your DNS zone EXAMPLE.COM, you can create a DNAME record:
example.com. <ttl> IN DNAME example.2.com
Then, for instance, using your "test" hostname, a DNS query for resolution of the IP address of FQDN test.example.com should result in the dig utility returning:
;; ANSWER SECTION:
example.com. IN DNAME example.2.com.
test.example.com. IN CNAME test.example.2.com.
test.example.2.com. IN A 1.2.3.4
assuming that that the hostname "test" is defined to resolve to IP address 1.2.3.4 in the EXAMPLE.2.COM domain.