Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Note

Consider each subdomain as unique application instance

For information about application architecture visit

http://stackoverflow.com/questions/11272776/using-phusion-passenger-nginx-running-same-rails-app-with-multiple-instance

I 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 putting

www.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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
Thanks for sharing, i could see they are offering up to 150 DNS records, And i couldn't understand about DNS hosting units. Can you please explain for this newbie –  Sampath Mar 20 '13 at 17:51
    
That is their pricing structure. It ends up being one of the most reasonable "pay for what you use" pricing structures I have ever seen. The more DNS records you add, and the more domains you have, and the more DNS queries your users perform, the more they charge you. I usually use $1.24 worth of services per month. They will tell you what you will be charged based on your current setup, so you are never surprised. If you remove domains or records from them, your charges automatically drop accordingly. –  Stephen Ostermiller Mar 20 '13 at 17:57
    
And they offer unlimited DNS records. Their pricing is $5/year for every 50 of them. So if you have 500 you would be charged $4.16 each month ($50/12 months). –  Stephen Ostermiller Mar 20 '13 at 18:08
    
Thanks Stephen, I got your point –  Sampath Mar 20 '13 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.