cmd ipconfig foundation view and clear the dns cache

  •        OS : Windows 10 Version 1909
  •        blog : blog.csdn.net/shiwanwu
  •  typesetting : Markdown

code

View dns cache

C:\Users\Student\Desktop>ipconfig /displaydns

Windows IP 配置

    go.microsoft.com
    ----------------------------------------
    记录名称. . . . . . . : go.microsoft.com
    记录类型. . . . . . . : 5
    生存时间. . . . . . . : 2
    数据长度. . . . . . . : 8
    部分. . . . . . . . . : 答案
    CNAME 记录  . . . . . : go.microsoft.com.edgekey.net


    记录名称. . . . . . . : go.microsoft.com.edgekey.net
    记录类型. . . . . . . : 5
    生存时间. . . . . . . : 2
    数据长度. . . . . . . : 8
    部分. . . . . . . . . : 答案
    CNAME 记录  . . . . . : e11290.dspg.akamaiedge.net


    记录名称. . . . . . . : e11290.dspg.akamaiedge.net
    记录类型. . . . . . . : 1
    生存时间. . . . . . . : 2
    数据长度. . . . . . . : 4
    部分. . . . . . . . . : 答案
    A (主机)记录  . . . . : 69.192.10.224



C:\Users\Student\Desktop>

Clear dns cache

C:\Users\Student\Desktop>ipconfig /flushdns

Windows IP 配置

已成功刷新 DNS 解析缓存。

C:\Users\Student\Desktop>

more knowledge

C:\Users\Student\Desktop>ipconfig /?

用法:
    ipconfig [/allcompartments] [/? | /all |
                                 /renew [adapter] | /release [adapter] |
                                 /renew6 [adapter] | /release6 [adapter] |
                                 /flushdns | /displaydns | /registerdns |
                                 /showclassid adapter |
                                 /setclassid adapter [classid] |
                                 /showclassid6 adapter |
                                 /setclassid6 adapter [classid] ]

其中
    adapter             连接名称
                       (允许使用通配符 * 和 ?,参见示例)

    选项:
       /?               显示此帮助消息
       /all             显示完整配置信息。
       /release         释放指定适配器的 IPv4 地址。
       /release6        释放指定适配器的 IPv6 地址。
       /renew           更新指定适配器的 IPv4 地址。
       /renew6          更新指定适配器的 IPv6 地址。
       /flushdns        清除 DNS 解析程序缓存。
       /registerdns     刷新所有 DHCP 租用并重新注册 DNS 名称
       /displaydns      显示 DNS 解析程序缓存的内容。
       /showclassid     显示适配器允许的所有 DHCP 类 ID。
       /setclassid      修改 DHCP 类 ID。
       /showclassid6    显示适配器允许的所有 IPv6 DHCP 类 ID。
       /setclassid6     修改 IPv6 DHCP 类 ID。


默认情况下,仅显示绑定到 TCP/IP 的每个适配器的 IP 地址、子网掩码和
默认网关。

对于 Release 和 Renew,如果未指定适配器名称,则会释放或更新所有绑定
到 TCP/IP 的适配器的 IP 地址租用。

对于 Setclassid 和 Setclassid6,如果未指定 ClassId,则会删除 ClassId 。

示例:
    > ipconfig                       ... 显示信息
    > ipconfig /all                  ... 显示详细信息
    > ipconfig /renew                ... 更新所有适配器
    > ipconfig /renew EL*            ... 更新所有名称以 EL 开头
                                         的连接
    > ipconfig /release *Con*        ... 释放所有匹配的连接,
                                         例如“有线以太网连接 1”或
                                             “有线以太网连接 2”
    > ipconfig /allcompartments      ... 显示有关所有隔离舱的
                                         信息
    > ipconfig /allcompartments /all ... 显示有关所有隔离舱的
                                         详细信息

C:\Users\Student\Desktop>

resource

  • [ doc - cmd ] docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/windows-commands
  • [Doc - OS] docs.microsoft.com/zh-cn/windows
  • [ msdn ] msdn.microsoft.com/zh-cn
  • [Platform] www.csdn.net


Thanksgiving has helped people over the division of all things.
cmd can perform common tasks, simple and fast start command, the proposed study.
There is spare capacity, you can look at PowerShell, PowerShell Core and Linux Shell.

Published 126 original articles · won praise 16 · views 60000 +

Guess you like

Origin blog.csdn.net/shiwanwu/article/details/104199833