S
santa19992000
How to map ipaddress to hostname on windows?.
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".
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".
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".
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.
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/>