Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

dns set to the wildcard as

a*.domain.com -> ip server 1 b*.domain.com -> ip server 2 c*.domain.com -> ip server 1

share|improve this answer

Your Answer


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