闭口怎么形成的:hosts和lmhosts区别及查看netbios缓存方法
来源:百度文库 编辑:偶看新闻 时间:2024/04/19 12:27:25
lmhost和host是静态解析名字的文件,dns和wins是动态解析名字的服务 。lmhost基于nebios,netbios支持最长16和字符,不能带点(“.”);host基于hostname,最长支持255各字符,可以带点。
在95、98里面是用lmhost的,2k里面这两个文件都有。
解析过程如下:
1.host解析:local host name --->hosts file--->dns server--->netbios name cache--->wins server--->broadcast--->lmhost file
即:计算机在把名字解析为ip时,先找本地计算机名称,如果不是,找host文件,找不到,找dns server,如果找不到,找netbios缓存,找不到,找wins server解析,还找不到,发广播,还找不到,才找lmhost,还找不到........,那就找不到了,呵呵
2.netbios解析:netbios name cache-->wins server-->broadcast-->lmhost file-->host file--->dns server
----------------------------------------------------------------------------------------------------------------------------------------------查看缓存方法:dns缓存,可以用 ipconfig /displaydns 查看
netbios缓存,可以用nbtstat -c查看------------------------------------------------------------------------------------------Host失效原因:我用ipconfig/displaydns可以看到:
www.yahoo.com
----------------------------------------
Record Name . . . . . : www.yahoo.com
Record Type . . . . . : 1
Time To Live . . . . : 596469
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.0.0.110
但不知为什么不起作用?
我的机器在用微软的proxy client,这个会影响吗?===Disable proxy client后, hosts文件起作用了。
看来proxy client会改变解析顺序。
在95、98里面是用lmhost的,2k里面这两个文件都有。
解析过程如下:
1.host解析:local host name --->hosts file--->dns server--->netbios name cache--->wins server--->broadcast--->lmhost file
即:计算机在把名字解析为ip时,先找本地计算机名称,如果不是,找host文件,找不到,找dns server,如果找不到,找netbios缓存,找不到,找wins server解析,还找不到,发广播,还找不到,才找lmhost,还找不到........,那就找不到了,呵呵
2.netbios解析:netbios name cache-->wins server-->broadcast-->lmhost file-->host file--->dns server
----------------------------------------------------------------------------------------------------------------------------------------------查看缓存方法:dns缓存,可以用 ipconfig /displaydns 查看
netbios缓存,可以用nbtstat -c查看------------------------------------------------------------------------------------------Host失效原因:我用ipconfig/displaydns可以看到:
www.yahoo.com
----------------------------------------
Record Name . . . . . : www.yahoo.com
Record Type . . . . . : 1
Time To Live . . . . : 596469
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.0.0.110
但不知为什么不起作用?
我的机器在用微软的proxy client,这个会影响吗?===Disable proxy client后, hosts文件起作用了。
看来proxy client会改变解析顺序。
Real 0ne和Real Player有何区别?
“查看”和“察看”有什么区别?
“。”和“?”的作用及区别
NE和PS怎样选择
单句和复句的定义及区别
“签订”和“签定”的区别及含义?
抢夺和抢劫的区别及判刑
陶器和瓷器的区别及分辩?
普通话和东北话的特点及区别
have和has的用法及区别
NF4和C51的性能及区别?
lmhosts是什么文件
启用LMHOSTS 查询 有啥用
什么是缓存?和内存有什么区别?怎么查看?
怎么查看IE版本,IE6和IE5有什么区别?
Windou系统的各版本的区别和查看???
卡巴斯基杀毒软件中有查看隔离和查看备份这两个选项,它有何区别?
有关NE和UD的问题
魔兽UD和NE中立开局
魔兽争霸NE在大树坐下和站起来有什么区别呀?还有就是各种树中那个攻击力最高呀?
找不到hosts
HOSTS文件
什么是hosts?
什么是hosts