A strong ally for rewriting hosts! "Hosts File Manager"
table of contents
My name is Ito and I am an infrastructure engineer.
When you move the server you are currently using, the new server's IP address and domain name are not linked, so
when you access the domain name, you will see the "server you are currently using".
In such a case, the hosts file is used to link the domain name and IP address to the destination server only on your PC.
The hosts file is located in the following directory, and editing it is a bit troublesome.
%systemroot%system32driversetchosts
Introducing "Hosts File Manager," a software that conveniently manages hosts files that are a bit troublesome to edit!
Settings/How to use
Host File Manager can be downloaded from the following page.
When you start it after installation, the following screen will appear.
(Since it has already been set, it may be slightly different if it is new)
First, open the current hosts file.
Add record.
Enter the new server's IP address and domain name in the host name field.
(Of course, the IP and domain entered below are fictitious)
Click [OK] to confirm that the record has been added.
Since it is not reflected as it is, let's "overwrite" it.
If administrator privileges are required, you will be notified, so click OK.
If you actually look at the hosts file, you can confirm that the settings are reflected!
Convenient place
Although you can easily manage the settings of the Hosts file using the method I introduced,
there are still some useful points.
It's a checkbox to the left of each Hosts setting.
Settings in the hosts file can be enabled or disabled by checking the checkbox.
*Please note that after setting the checkbox, the settings will not be reflected unless you overwrite and save.*
With the settings introduced above, it will look like this.
check box | domain name | Connection destination |
---|---|---|
can be | test.example.com | 192.168.1.1 |
none | test.example.com | original server |
Editing is much easier because it is reflected or not reflected depending on the presence or absence of the checkbox.
summary
When transferring servers, I often use the hosts file.
Editing the hosts file each time will take time.
If you use these useful tools, you should be able to work even a little more efficiently, so
please use them as a reference!
Download page for
Hosts File Manager