We are hosting many web applications for our customers. As is obvious they want to use their own domains to refer to those applications, usually they want that any user that either type http://www.customer1.com or http://customer1.com goes to their web application.
The situation we are facing is that we need to have the flexibility to change IP addresses in the near future. And we don't want to relay on the customer doing the A record change or their domains. So we thought that using CNAMES will work, but as we find out CNAMEs will not work for the root domain.
Basically:
customer1.com IN CNAME customer1.mycompanydomain.com //this is invalid as the RFC
www.customer1.com IN CNAME customer1.mycompanydomain.com //this is valid and will work
We want to be able to change the IP address of customer1.mycompanydomain.com or the A record and our customers will follow this record which we have control over.
in our DNS it will look like:
customer1.mycompanydomain.com IN A 5.5.5.1
any ideas?