How to map ipaddress to hostname on windows?

  • Thread starter Thread starter santa19992000
  • Start date Start date
What is the situation?

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
 
we have fixed ip address server, named ip as eagle which is internal
web server has fixed ip-addr, if I do http://ip-addr, everything isOK,
but when I give http://eagle it is not working, how can I map this
ip-addr to eagle on windows pc?. Thanks.
 
Ok,..so the webserver is "internal"

Is the name "Eagle" a Netbios Machine name?
Where is the "windows pc" that accesses it? Internal..External?

Is this a LAN with a Domain Controller and a Windows Domain?
Do you have any kind of naming system in place?
Is this just some kind of simple "lab" network that was stuck together or is
it a "real" network that is really in service somewhere?

I could toss out a few "quick" answers to what you "might" do,...but I would
rather know the real situation and give the best answer.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
 
This is at home office network, contaisn and windows and linux pc's,
the web server is linux server. all are on LAN with Router outside. But
I want the internal site running on linux based web server (eagle).
Thanks
 
Then you would not likely have a local DNS or WINS server. So the most
straight forward way to account for naming would be to use the LMHOSTS file
for Netbios Names (single-word names, no "dots") and use the HOSTS file for
fully qualified names (multiple-words, separated by "dots").

Both of these files are already in Windows, just edit them. These files do
not have extensions, do not give them one, do not rename them, do not move
them. Depending on your copy of Windows they would be found in one of these
two locations:

<drive>:\WINNT\system32\drivers\etc\
<drive>:\WINDOWS\system32\drivers\etc\


--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
 
I found under WINT dir, I added to lmhosts file

192.168.0.66 eagle

then I did exit and I tried "ping tiger", it says "unknown host tiger".
 
(e-mail address removed) wrote in
I found under WINT dir, I added to lmhosts file

192.168.0.66 eagle

then I did exit and I tried "ping tiger", it says "unknown host
tiger".

"lmhosts" is for NetBIOS names. A "ping" is a TCP/IP operation. You
need to put the line in the "hosts" file (same directory).

HTH,
John
 
I found under WINT dir, I added to lmhosts file

192.168.0.66 eagle

then I did exit and I tried "ping tiger", it says "unknown host tiger".

You add EAGLE to the (LM)hosts file and then you're trying to ping TIGER???!

If you're running Apache as webserver, don't forget to change the
VirtualHosts section in httpd.conf if you use them (multiple sites).
 
I found under WINT dir, I added to lmhosts file

192.168.0.66 eagle

then I did exit and I tried "ping tiger", it says "unknown host tiger".

ping "eagle", not "tiger"


--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------
 
John Wunderlich said:
(e-mail address removed) wrote in
news:[email protected]:
"lmhosts" is for NetBIOS names. A "ping" is a TCP/IP operation. You
need to put the line in the "hosts" file (same directory).

LMHOSTSs is fine. It does the same thing as WINS which resolves a Netbios
Name to a TCP/IP Address. It doesn't have anything to do with the Netbios
protocol itself. The HOSTS file is for FQDNs like "eagle.mycompany.org"
which would be the pattern for the same machine when resolved in the
FQDN/DNS manner. See the examples within the HOSTS file and the LMHOSTS
file to see the difference. Only the LocalHost entry uses a "single-word"
name like a netbios name, but that is a special situation and LocalHost is a
Reserved Name.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------
 
Well, after adding that entry, I confirmed the entry exists, then I
tried ping, it didn't work, then I rebooted the machine and again tried
ping, it didn't work (after reboot my change should be there in lmhosts
file right, I didn't verified this). Thanks.
 
LMHOSTSs is fine. It does the same thing as WINS which resolves a
Netbios Name to a TCP/IP Address. It doesn't have anything to do
with the Netbios protocol itself. The HOSTS file is for FQDNs
like "eagle.mycompany.org" which would be the pattern for the same
machine when resolved in the FQDN/DNS manner.

Not True. NetBIOS names are resolved first through LMHOSTS/WINS and
then HOSTS/DNS. TCP/IP utilities will not recognize LMHOSTS/WINS at
all. There is nothing wrong with entering a non-fully qualified
domain name in the HOSTS table although it's not good practice to do
so.

See Microsoft Knowledge based article:
"Differences Between the HOSTS and LMHOSTS Files in Windows NT"
<http://support.microsoft.com/kb/q105997/>

Quoting from the start:
SUMMARY
In Windows NT, the HOSTS file is for TCP/IP utilities, and the
LMHOSTS file is for LAN Manager NET utilities. If you cannot PING
another computer (using a friendly name), check the HOSTS file. If
you cannot NET VIEW a server using only the TCP/IP protocol, check
the LMHOSTS file.

HTH,
John
 
John Wunderlich said:
Not True. NetBIOS names are resolved first through LMHOSTS/WINS and
then HOSTS/DNS. TCP/IP utilities will not recognize LMHOSTS/WINS at
all. There is nothing wrong with entering a non-fully qualified
domain name in the HOSTS table although it's not good practice to do
so.

See Microsoft Knowledge based article:
"Differences Between the HOSTS and LMHOSTS Files in Windows NT"
<http://support.microsoft.com/kb/q105997/>

Ok. Thanks for bringing me up to speed on that.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------
 
Go ahead and try doing the HOSTS file as John suggested. I think you can
just copy/past the entry from the LMHOSTS file.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
 
Philip,

It worked, after I added entry into (WINNT/system32/drivers/etc/hosts)
into hosts file.

Thanks.
 
Back
Top