↑ Return to S20 Server Migration

S20c Editing the Hosts File

Page no: S20c

Page no: S20c


Business Requirements:

During the migration from one server to another the change of DNS may take up to 48 hours. For testing purposes we can switch already earlier to the new IP.



The path to the Hosts file in Windows 7 is the same as usual:


where %systemroot% is usually c:windows unless you installed Windows on a different partition. By default, you cannot see these hidden folders since they are system folders.

hosts file windows 7To show hidden folders in Windows 7, press the ALT key while in Explorer to bring up the File menu. Click on Tools and then Folder Options.






show hidden files windows 7Click on the View tab and then click on the Show hidden files, folders, and drives radio button under Hidden files and folders.










edit hosts fileNow navigate to the directory above and open the hosts file and make your changes.












windows 7 hosts fileNote that this method for editing the Hosts file will not work. You will get a message saying you do not have permission to save in this location.







run as administratorIn order to edit it, you have to click on Start, type in Notepad and then right-click on Notepad and choose Run as Administrator.




















view all filesNow navigate to the drivers/etc folder again and make sure to choose All files for File Types otherwise you won’t see the Hosts file.



Make your changes to the Hosts file and click File and Save to save all changes. Now you will not get the error about not being able to modify the Hosts file. Enjoy!

See more for Server