[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

A strong ally for rewriting hosts! "Hosts File Manager"

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.

Hosts File Manager

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)

SnapCrab_hosts - Hosts File Manager_2016-1-12_11-43-32_No-00

First, open the current hosts file.
SnapCrab_NoName_2016-1-12_11-51-6_No-00_011216_115427_AM

Add record.
SnapCrab_NoName_2016-1-12_12-8-4_No-00_011216_120937_PM

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)
SnapCrab_NoName_2016-1-12_12-12-28_No-00

Click [OK] to confirm that the record has been added.
SnapCrab_NoName_2016-1-12_12-34-27_No-00_011216_123522_PM

Since it is not reflected as it is, let's "overwrite" it.
If administrator privileges are required, you will be notified, so click OK.
SnapCrab_NoName_2016-1-12_12-36-52_No-00_011216_123852_PM

If you actually look at the hosts file, you can confirm that the settings are reflected!
SnapCrab_hosts_-_Notepad_2016-1-12_12-42-36_No-00_011216_124407_PM

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.*

SnapCrab_NoName_2016-1-12_12-12-28_No-00

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

If you found this article helpful , please give it a like!
0
Loading...
0 votes, average: 0.00 / 10
7,709
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

[Osaka/Yokohama] Actively recruiting infrastructure engineers and server side engineers!

The person who wrote this article

About the author