I have two hosted zones (main.mydomain.com
and backup.mydomain.com
). They include similar records (more than 100 records). Their records only differ in value/route traffic to
. The main subdomain records route to my resources in my main AWS region and the backup subdomain records route to my resources in another AWS region that I use as backup. In case of disaster recovery, I'd like to disable or delete the main hosted zone and reroute *.main.mydomain.com
to *.backup.mydomain.com
. Is it possible? If yes, how can I do it?
In my main hosted zone, I tried adding a CNAME record with an empty record name and the value of backup.mydomain.com
and I got the following error.
Bad request.
(InvalidChangeBatch 400: RRSet of type CNAME with DNS name main.mydomain.com. is not permitted at apex in zone main.mydomain.com.)