Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I work for a studio that spends its days developing websites. There are often multiple people working on a project at once. I would like to be able to let people share what they are working on with the office in a standardized way.

I was thinking the url would work like this

project(.user_machine_name).dev

for example

qwikster.com.kevins-imac.dev

Is there a way I can setup an internal DNS server that can recognize the .dev extension, parse out the user and use that to reroute the request to their machine IP where apache is waiting to respond with the correct vhost setup?

share|improve this question

2 Answers 2

You probably can't do it all with DNS, but it sure seems like it would be trivial to setup a .dev domain with a wildcard record that sends all traffic to an HTTP proxy that routes requests to the proper machine.

share|improve this answer

If your users receive their IP from DHCP, you could setup the DHCP server to create a dynamic DNS record to register each machine's name in a .dev domain.

Since I think you can't make DHCP create the wildcard records you need, maybe you can create wildcard-records that are CNAME aliasses which point to each user's dynamic-DNS record.

share|improve this answer

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.