HOSTS和LMHOSTS的区别?

whepin 2003-08-09 04:29:41
这两个文件有什么区别啊,都是将IP地址解析为HOSTNAME啊?
和WINS和DNS怎么对应的啊?
...全文
574 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lqbn 2003-08-09
  • 打赏
  • 举报
回复
Hosts.


The Hosts. file, originally used with UNIX systems, contains a list of host name to IP address mappings. It is a regular text file named HOSTS. and is located in the %Systemroot%\system32\drivers\etc directory.


The Hosts. file is not case sensitive when working with NT networks. However, UNIX computer names are case-sensitive. When connecting from NT to UNIX, the hosts file must have proper case-sensitivity.


A hostname containing a numerals must be specified in the Hosts. file within single quotation marks (i.e. '1997').


The Hosts. file is only parsed for NetBIOS name resolution when the box is checked to enable DNS for NetBIOS name resolution.


LMHosts.


The LMHosts. file, originally used with MS-LAN Manager, contains a list of NetBIOS name to IP address mappings. It is a regular text file named LMHOSTS. and is located in the %Systemroot%\system32\drivers\etc directory.


To view a sample LMHosts. file, look in the Windows directory of your DOS/Windows95 computer (or the %Systemroot%\system32\drivers\etc directory on your NT machine), and open it with a text editor.


The tags associated with the LMHosts. file are as follows:

#PRE will cause the entry to be preloaded into the NetBIOS name cache.
#DOM:domainname specifies the domain master browser in another domain. Must be preceded by the #PRE tag.
#INCLUDE:\\servername\share\lmhosts. specifies the LMHosts. file on another computer, and will parse it as if it was local.
#BEGIN_ALTERNATE precedes multiple #INCLUDE statements.
#END_ALTERNATE succedes multiple #INCLUDE statements.



The LMHosts file is not case-sensitive.



Note: All items after the # sign on the same line are noted as comments


6,868

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧