Add Manual Hosts IP and Domain Using NotePad in MS Windows

Mindwatering Incorporated

Author: Tripp W Black

Created: 09/23 at 12:31 AM

 

Category:
General Web Tips
Other

Task:


Add a manual DNS entry to the local workstation to bypass or override normal DNS.


Steps:


1. Open Notepad program as Administrator:

a. Start Notepad:
Search (bottom taskbar) --> Notepad (search field) --> Notepad (highlight but do not open) --> Run as Administrator (on right)

Running Notepad as Administrator


b. Approve Running as Administrator:
In the User Account Control dialog:
Do you want to allow this app to make changes to your device?
Notepad --> Yes (button)

Allow - Yes


2. Open and Edit hosts file:
a. File (top menu) --> Open (option) -->

b. In the Open dialog:
- Navigate to:
C:\Windows\System32\drivers\etc

- Change *.Txt to All Files (lower right)

- Choose hosts --> Open
Notepad Open Dialog to Hosts

c. Add the new entry
- At the bottom of the file, add the entry desired.
example:
10.0.50.25 myinternalserver.mindwatering.net myinternalserver

d. Save
File (top menu) --> Save (option)


3. Optional - Verify in command prompt the Domain and IP is working from the hosts file
a. Open a terminal window:
Search (bottom taskbar) --> cmd (search field) --> Command Prompt (double click)

b. Ping the entry added above.
e.g.
> ping myinternalserver.mindwatering.net


previous page

×