I have a domain (for instance, example.com) that points to certain IP direction (type A record), and DNS system is controlled by my organization. Now, a new web app has been published at news.example.com. As it is located on a cloud service provider, in order to maintain easy access, we requested a new A record on our managed DNS that should be created to point the name news.example.com to the cloud provider-assigned IP address for the host.
after that, we wanted to deploy a WAF in front of the news.example.com website to protect it. The Cloud service provider requires that I create a new CNAME pointing news.example.com to the target string provided by the cloud provider so that traffic gets routed through the WAF first. However, the CNAME record creation process fails because it says
there already exists an A record associated.
Example CNAME record:
origin (news.example.com) - this one has already an A record pointing to its IP address. target: xxx.yyyy.zzz.www. (info provided by Cloud Service Provider) Type: CNAME
How can approach this problem? What am I missing?