Cannot PING Computer on Last Line of HOSTS File
Article ID: 105998
Article Last Modified on 11/1/2006
APPLIES TO
- Microsoft Windows NT Advanced Server 3.1
- Microsoft Windows NT Workstation 3.1
- Microsoft Windows NT Advanced Server 3.1
This article was previously published under Q105998
SYMPTOMS
If you add an entry to the HOSTS file (for TCP/IP utilities) and then
try to use the PING command to access that computer, you may receive
the following error message:
<friendlyname>:Unknown Host
CAUSE
This error message may be caused by not having a carriage return after
the last line in the HOSTS file. This problem usually occurs only when
you try to communicate with the computer on the last line of the HOSTS
file, because the other lines should have carriage returns.
NOTE: There may be numerous other causes for this error message.
RESOLUTION
To avoid this error message, use Notepad (or any text editor) to edit
the HOSTS file and add a carriage return to the last line. If you add
a carriage return to the last line of the HOSTS file created above,
the PING command works correctly.
For additional information on the HOSTS file in Windows NT, query on
the following words in the Microsoft Knowledge Base:
For additional information on the troubleshooting TCP/IP connectivity
with Windows NT, query on the following words in the Microsoft
Knowledge Base:
tcp/ip and tshoot and windows and nt
Additional query words: prodnt
Keywords: kbnetwork KB105998