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 have a situation where (is the live server - A record points to this server). We have another (which is the test server - users manually set hosts file).

Users would like to access the live and test sites simultaneously on the the browser. What is the best way to do this? Users use their PCs/Macs to view the site.

I know that if you set the Hosts file setting on the PC then you can decide which IP to use that works but then switching hosts file each time is pretty hard to do.

share|improve this question

Did you see this:

It's a Firefox addon that allows you to switch between different hosts file (and also do the DNS cache cleanup).

What we do on my job is to have subdomains for every environment like or

share|improve this answer

If you use firefox get this addon:

If not your best bet is using Fiddler which act as a web proxy and thus can use his own hosts file ("Tools" Menu, "HOSTS File"), there's even a function to proxy for multiple remote clients.

NB: Fiddler is an excellent tool, it supports addons and many of them ar very useful and easy to use:

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.