Windows中是否有允许我查看当前由系统解析的域名列表的命令或任何内容?
类似于arp命令,但适用于域名。
谢谢。
编辑:
我一直在对Matt提供的命令进行一些测试,我注意到ipconfig给出的列表中没有显示刷新时间和/或重试时间较短的域名。
例如,google.com没有出现在我的列表中,但是根据dns响应,应该缓存它:
google.com
primary name server = ns1.google.com
responsible mail addr = dns-admin.google.com
serial = 2009052800
refresh = 7200 (2 hours)
retry = 1800 (30 mins)
expire = 1209600 (14 days)
default TTL = 300 (5 mins)然而,具有较高刷新和重试次数的serverfault.com确实出现在ipconfig提供的列表中。
serverfault.com
primary name server = ns21.domaincontrol.com
responsible mail addr = dns.jomax.net
serial = 2009031400
refresh = 28800 (8 hours)
retry = 7200 (2 hours)
expire = 604800 (7 days)
default TTL = 86400 (1 day)以下是ipconfig从未显示过的另一个域,尽管它具有较高的TTL:
minijuegostop.com.mx
primary name server = ns1.theplanet.com
responsible mail addr = support.minijuegostop.com.mx
serial = 2008122302
refresh = 900 (15 mins)
retry = 900 (15 mins)
expire = 1209600 (14 days)
default TTL = 86400 (1 day)显然,Windows决定不缓存某些域,刷新和重试时间与此有关。或者是Internet维护自己的域名列表。但是我不这么认为,因为一旦我打开一个新的网页,该页面的域名就会由ipconfig命令显示;除非它有较低的刷新或重试时间,否则它不会显示在列表中。
有没有人知道问题可能是什么,或者是否有可能显示一个完整的缓存域名列表?(因为ipconfig给出的列表显然不完整)
发布于 2009-05-28 19:58:38
ipconfig /displaydns
发布于 2009-05-30 02:15:50
按照顺序运行以下命令:
这(或类似的东西)是您应该看到的,除非某些东西(可能是恶意软件)正在破坏您的DNS解析:
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\>ping google.com.
Pinging google.com [74.125.45.100] with 32 bytes of data:
Reply from 74.125.45.100: bytes=32 time=36ms TTL=50
Reply from 74.125.45.100: bytes=32 time=32ms TTL=50
Reply from 74.125.45.100: bytes=32 time=40ms TTL=50
Reply from 74.125.45.100: bytes=32 time=38ms TTL=50
Ping statistics for 74.125.45.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 32ms, Maximum = 40ms, Average = 37ms
C:\>ipconfig /flushdns
Windows IP Configuration
google.com
----------------------------------------
Record Name . . . . . : google.com
Record Type . . . . . : 1
Time To Live . . . . : 140
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 209.85.171.100
Record Name . . . . . : google.com
Record Type . . . . . : 1
Time To Live . . . . : 140
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 74.125.67.100
Record Name . . . . . : google.com
Record Type . . . . . : 1
Time To Live . . . . : 140
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 74.125.45.100
C:\>发布于 2009-05-30 06:07:58
关于您编辑的有关缓存中缺少一个较低TTL的一些DNS条目的问题,请查看这个谷歌搜索,它将解释所有内容:
https://serverfault.com/questions/14074
复制相似问题