I have many sites (each one with its own domain) all on the same cPanel hosted server (let's say server IP is
22.214.171.124 and server main domain is
All these domains use third party DNS (not the cPanel hosted ones), I set up the DNS of each one of these domain to point to server IP. Example of how each domain DNS is currently set:
domainx.com -> A -> 126.96.36.199 domainx.com -> MX -> mail.domainx.com mail.domainx.com -> A -> 188.8.131.52 www.domainx.com -> CNAME -> domainx.com ftp.domainx.com -> CNAME -> domainx.com
This situation obliges me to repeat hundreds times the server IP
184.108.40.206 one time for each domain. In the event that server IP changes I will have to go through each domain DNS to update records with new IP.
So I thought why not use CNAME to avoid rewriting server IP everywhere?! I could set each domain DNS like the following:
domainx.com -> CNAME -> myserver.com domainx.com -> MX -> mail.myserver.com mail.domainx.com -> CNAME -> myserver.com www.domainx.com -> CNAME -> myserver.com ftp.domainx.com -> CNAME -> myserver.com
But what alternatives do I have to avoid rewriting server IP everywhere?