I want to point www.example.com or example.com to abc.example2.com.
In my cname zone settings for example.com, I have added a cname as follows:
name: www.example.com type: cname value: abc.example2.com
and so when I visit www.example.com it shows me the content of abc.example2.com which is absolutely correct. But when I visit example.com (without www or any other sub domain), it's not working. I even tried adding a record set as follows:
name: example.com type: cname value: abc.example2.com
But it gives me the following errors in 2 different DNS hosting websites: Route 53
RRSet of type CNAME with DNS name example.com. is not permitted at apex in zone example.com.
CNAME cannot be created with label that is equal to zone name or in use for another record type.
Now, how can I achieve when visiting example.com it should show the content of abc.example2.com ?