configure host file on workgroup box

  • Thread starter Thread starter ChrisR
  • Start date Start date
C

ChrisR

Howdy all. How do I configure a host file for my loopback adapter on a box
in a workgroup and not a domain?

192.168.1.1 boxName.workGroup boxName?
192.168.1.1 boxName boxName?
192.168.1.1 boxName.ispDomainName boxName?

etc, etc.

TIA, ChrisR
 
Well, it wouldn't have a domain name associated with it so

192.168.1.100 computername
192.168.1.101 othercompname

As shown in the sample file:
===========================================

c:\Windows\System32\drivers\etc>type hosts
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
::1 localhost
===========================================

--

Mike Shepperd
Sunfire Solutions LLC
Seattle, WA

[This posting is provided AS-IS, with no warranties and confers no rights]
 
If it is a single-word name then it is a Netbios Name and would use the
LMHosts file.
If it is a FQDN (host.something.xxx) then it would use the Hosts file.
Although I hear that the Hosts file will still work with Netbios names.

The files are in the same location,...typically,

<drive>:\@system@\System32\Drivers\Etc

The files do not (should not) have extensions,...don't give them any
extensions, and don't move them anywhere.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com

The views expressed are my own (as annoying as they are), and not those of
my employer or anyone else associated with me.
 
In microsoft.public.win2000.general Phillip Windell said:
If it is a single-word name then it is a Netbios Name and would use the
LMHosts file.
If it is a FQDN (host.something.xxx) then it would use the Hosts file.
Although I hear that the Hosts file will still work with Netbios names.

This certainly works in HOSTS:

192.168.1.1 Router
 
Back
Top