Configure static host name to ip address mappings

Home -> Windows

8562 views

From the computer of: qmchenry (339 recipes)
Created: Sep 16, 2003     Updated: Sep 22, 2003


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Using the hosts file, ip addresses can be mapped to hostnames. This is useful to access systems that do not have a DNS entry and for test and development purposes.

The hosts file exists in the SYSTEM32\DRIVERS\ETC directory under the Windows root directory (i.e., \WINDOWS or \WINNT). Edit this file and add a line like:

192.168.1.15   testserver test.domain.com


This would map two names to the ip address 192.168.1.15, testserver and test.domain.com

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  How to Configure a Static Client for Windows XP Internet Connection Sharing
  XP: Set or configure static network IP address wtih netsh from command line
  XP: Set or configure network interface to DHCP wtih netsh from command line
  How to configure Microsoft Virtual Server 2005 to cleanly shut down any guest OS
  XP & 2000 users that use static ip's in one office & dhcp in another office
  How to Use Internet Connection Sharing (ICS)
  Pathping: Traceroute with Packet Loss and Latency Reporting
  VirtualBox: Change the Host Key
  NT/2000/XP: Display or view the Windows routing table
  XP/2000: configure client sntp time protocol settings

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.