Is there a tool, that allows an individual to temporarily switch between different etc/hosts configurations, without setting up a dns?
Example:
I would like to quickly change the etc/hosts config file, so that project1.com forwards to a local IP like 192.168.10.50 without changing information in our DNS server.
Why?
We are developing several bigger cms projects. The cms is developed inside a virtual machine. Sometimes we have to make bigger changes to a cms system that is already in production. A developer needs to access the productive version of the site and some minutes later he wants to redirect all requests to the local virtual machine.
A tool, that can easily swap between different etc/hosts configuration files would be ideal.
If possible don't want the users to manually edit the etc/hosts file.
You could just write a batch job that could be run to swap the hosts file from one version to another when run.
You could create batch file where user input then copies and replaces the hosts file.
Perhaps not ideal but a simple and quick solution.
Just create the hosts files and keep them somewhere on the machine, like C:\temp\hostfiles\
Then create a .bat file with content like:
Strongly recommend to backup the hosts file before testing this.