windows下的hosts文件问题

hudongyi1998 2004-06-24 01:53:58
我将c:\windows\system 32\drivers\ect\hosts文件中添加一行
127.0.0.1 www.sina.com.cn
但是重新输入www.sina.com.cn文件后,系统还是能访问到新浪页面,请问哪位高手能帮忙解释一下原因,谢谢
...全文
364 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
frogJ 2004-06-24
  • 打赏
  • 举报
回复
对啊.你保存的时候 是不是带了扩展名了?
rifle706 2004-06-24
  • 打赏
  • 举报
回复
I don't come here often,occasionally,I found this question.I wish following plain text usefully to you.

Host name resolution means successfully mapping a host name to an IP address. A host name is an alias that is assigned to an IP node to identify it as a TCP/IP host. The host name can be up to 255 characters long and can contain alphabetic and numeric characters, hyphens, and periods. You can assign multiple host names to the same host.

Windows Sockets (Winsock) programs, such as Internet Explorer and the FTP utility, can use one of two values for the destination to which you want to connect: the IP address or a host name. When the IP address is specified, name resolution is not needed. When a host name is specified, the host name must be resolved to an IP address before IP-based communication with the desired resource can begin.

Host names can take various forms. The two most common forms are a nickname and a domain name. A nickname is an alias to an IP address that individual people can assign and use. A domain name is a structured name in a hierarchical namespace called the Domain Name System (DNS). An example of a domain name is www.microsoft.com/.

Nicknames are resolved through entries in the Hosts file, which is stored in the systemroot\System32\Drivers\Etc folder. For more information, see TCP/IP database files.

Domain names are resolved by sending DNS name queries to a configured DNS server. The DNS server is a computer that stores domain name–to–IP address mapping records or has knowledge of other DNS servers. The DNS server resolves the queried domain name to an IP address and sends the result back.

You are required to configure your computers running Windows 2000 with the IP address of your DNS server in order to resolve domain names. You must configure Active Directory–based computers running Windows 2000 with the IP address of a DNS server.

JDirect 2004-06-24
  • 打赏
  • 举报
回复
确保hosts文件没有扩展名吗?
frogJ 2004-06-24
  • 打赏
  • 举报
回复
不可能出现这种情况吧!
hosts文件是优先DNS的,我还刚做了试验呢!

你看看你的 hosts文件别的地方是不是有指向sina的IP?

还是你用过什么网页加速的软件,缓存了你去过网站的ip什么的!

再有......你不是装了双系统,改的是98的 用的是XP系统吧.....^^(开玩笑的)
hudongyi1998 2004-06-24
  • 打赏
  • 举报
回复
有没有人帮我啊,顶
hudongyi1998 2004-06-24
  • 打赏
  • 举报
回复
to k4(olo):
系统是xp的,我直接在hosts(不是hosts.sam)文件后加了一行;其他未作任何改动
hudongyi1998 2004-06-24
  • 打赏
  • 举报
回复
操作已经保存成功了
按理说hosts的优先级会高于dns,但是事实上好像并不是这样子,狂晕,哪位大虾帮帮我
sysadm520 2004-06-24
  • 打赏
  • 举报
回复
DNS的问题


你的操作保存成功了没??

k4 2004-06-24
  • 打赏
  • 举报
回复
什么系统?
http://www.chinaunix.net/jh/16/252360.html
hudongyi1998 2004-06-24
  • 打赏
  • 举报
回复
本地链接上的dns是设置了一个dns服务器的
jimmyge 2004-06-24
  • 打赏
  • 举报
回复
网络上的DNS是怎樣設置的?

6,849

社区成员

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

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