如果一台联网计算机,能够通过IP地址访问ftp服务器,但无法通过域名访问各大网站,试分析可能存在的网络故障并简单说明故障检测方法?
- 提问者网友:焚苦与心
- 2021-05-08 04:13
- 五星知识达人网友:底特律间谍
- 2021-05-08 04:29
能用IP访问而域名访问一看就知道是DNS的问题,检测步骤应该是:先用IP,Ping下你要登陆的网站,再用域名 Ping下你要登陆的网站。如果Ping IP能访问而Ping 域名无法访问就是DNS解析的有问题了。如果是DHCP的话,那你就释放下缓存地址,命令ipconfig /flushdns,过会在看下是否能解析,如果还是不行,那就看下本机的hosts文件,看看里面有没有多余的,删除多余的。
正常应该是这样的
# 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
127.0.0.1 localhost
如果还是不好用那就是本地的DNS服务器的指向问题了。