Switchhosts is a management, fast switch hosts widget, open source software, one-click Switch hosts configuration, very practical and efficient.
The development of the web process, the deployment of multiple sets of environments, the same URL domain name, deployed on different servers, there is a development environment, test environment, pre-release environment, production environment. It is often time to switch hosts to access, test, and verify bugs, which can take a while, and this process has no fun.
Switchhosts is currently the latest version: Switchhosts! 3
How to use:
After the download is run:
There are two types of online and local programmes.
Local program directly on the right blank fill in the Domain name and IP
Online program can put the hosts file in a site, share to everyone, when there are changes, re-refresh, you can take the latest hosts, unified maintenance.
Use the icon to easily identify yourself in that environment, different environments set different icons, the program minimized icon will also follow the changes.
The lower right corner of the computer can also be conveniently switched, double-click can go to the main interface.
Note Run as Administrator, or you will be prompted with the following error.
The main interface has a public hosts tab, where you can write the public hosts in this case, so that the other tags will load the utility when they are in effect. For example, put Google's newest host in, so switching to other environments will not affect Google's access.
Here is a Google latest hosts update URL: http://laod.cn/hosts/2016-google-hosts.html
Precautions for use:
1, the runtime to run as an administrator, or will prompt no modification permissions. In SwitchHosts.exe right-run as Administrator
2, if it is a single file version of green, it is best to put in a folder and then run, because the EXE is located in the directory to generate configuration files and other folders.
3, if the double-click Run can not display the Switchhost interface, but the task manager can see Switchhost process, generally because the Hosts file character set is not unified, resulting in the Hosts file garbled, can not be switchhost open, this time just delete C : \windows\system32\drivers\etc\hosts can be.
4, if the use of agents, modify the Hosts will not take effect. Because the browser will give priority to Agent tool agent, it is recommended to switch off the agent when debugging.
5, modified the hosts do not take effect, generally need to restart the browser, if Google browser can not restart, you can use chrome://net-internals/#dns chrome://net-internals/#sockets Clear keep-alive
and clear the browser DNS cache.
From:https://www.cnblogs.com/mrzhow/p/7199542.html
Switchhosts-hosts Management Tools