Note Consider each subdomain as unique application instanceFor information about application architecture visithttps://stackoverflow.com/questions/11272776/using-phusion-passenger-nginx-running-same-rails-app-with-multiple-instanceI am having one product going to provide to multiple clients with subdomains www.client1.product.com to www.client100.product.com in server 1 with some static ip (x.x.x.1).After 100 clients server 1 reaches maximum resource load and space, so i am buying another new server puttingwww.client101.product.com to www.client200.product.com with ip (x.x.x.2) , consider i am using premium dns hosting for adding more than 100 A records. Is there any way to automate sub domain creation, by adding corresponding server ip to the A records.
creating unlimited sub domains programmatically through api
dns;subdomain;api;dns servers;automation
It will depend on your DNS hosting is done.  I personally use Zonomi.  They have a DNS API.  I can issue a request like https://zonomi.com/app/dns/dyndns.jsp?action=SET&name=mynewsubdomain.example.com&value=10.0.0.1&type=A&api_key=apikeyvaluehere to set the IP address for a new subdomain.