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

I would like to give my users their own subdomain like jack.xxx.com, james.xxx.com, and is using wildcard DNS record to do that.

But now I would like to separate users into multiple servers, like users A~J is on server A, and users K~S is on server B... Is there a way to do this?

share|improve this question

migrated from webapps.stackexchange.com Apr 1 '13 at 9:28

This question came from our site for power users of web applications.

2 Answers 2

A wildcard DNS entry is a catch-all. There is no way to point half of a wildcard entry to one server and half to another.

You could individually list DNS entries for half your users and have them sent to one server, and then send the rest to another server.

You could also employ a load balancer that handles all the traffic and then sends the traffic to various servers.

share|improve this answer

You could do this first by hand with already registered users, sort them to different servers, and with new registrations, having a script based on username to store data on selected server.

share|improve this answer

Your Answer

 
discard

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