Server Fault is a question and answer site for system and network administrators. 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'm trying to setup a corollary to how google asks people to point their subdomains to which then presumably directs traffic to the right servers based on hostname.

My setup differs in that each subdomain will be hosted on a different VPS. I understand that I could give each person an individual VPS IP and ask them to point their cname to the actual address, but then I have to have the VPS setup before they do that. I'd like to give them something like so that I can get them to point the cname before I setup the server and figure out the individual address.

If I understand correctly, my corollary of would be a server that looks up the hostname and figures out the VPS address that is mapped to that hostname, and then act like a reverse proxy.

Assuming that my assumptions are correct, does anybody know what the best way to set this up is? Is there a better alternative than lighttpd?

Edit: It has been brought to my attention that this problem can be solved via DNS. If there is such a solution, can you elaborate?

share|improve this question

migrated from Jul 10 '11 at 17:39

This question came from our site for professional and enthusiast programmers.

I looks like is a DNS server. That's one way you would can do this, in a dns server. Try asking this question on ServerFault, as Stack overflow is for programming questions. It has probably been answered over there.

share|improve this answer

Your Answer


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.