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 have a situation where domain.com (is the live server - A record points to this server). We have another domain.com (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

2 Answers 2

Did you see this: https://addons.mozilla.org/en-US/firefox/tag/HostsFile

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 dev.domain.com or staging.domain.com.

share|improve this answer

If you use firefox get this addon: https://addons.mozilla.org/en-US/firefox/tag/HostsFile

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: http://www.fiddler2.com/Fiddler2/extensions.asp

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.