不好意思大家,本人最近再研究host
遇到点问题不太明白
host如何配置啊
我再我这里配置
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
     218.25.171.98   www.baidu.com 
    
       127.0.0.1       localhost
我现在不想让我系统打开baidu,
我怎么办呢?
连接到别的网页我怎么办呢
谢谢了

解决方案 »

  1.   

    LZ不是已经写出来了吗?
    218.25.171.98  www.baidu.com ,难道没起作用吗?  试试清下dns缓存在cmd中执行 ipconfig /flushdns 行不行
    如果写成
    61.135.181.175    www.baidu.com ,百渡就变搜狐啦
      

  2.   

    C:\WINDOWS\system32\drivers\etc*nix 还有一个 resolv.conf 文件指定是文件优先, 还是 dns 系统优先hosts 只是 dns 搜索中的文件部分, 无禁止访问某个站点功效