How To Flush DNS and Reset TCP/IP with ipconfig /flushdns Command In Windows

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-flush-dns-and-reset-tcp-ip-with-ipconfig-flushdns-command-in-windows/
PINTEREST
PINTEREST
INSTAGRAM

DNS is used to translate between human readable name like poftut.com and IP address like 45.79.1333.118 . DNS can use both UDP and TCP protocols but generally UDP protocol is preferred. In this tutorial we will learn how to flush, clear the DNS cache with ipconfig /flushdns command. This tutorial can be applied to the All Windows Operating system versions like Windows XP, Windows 7, Windows 8, Windows 10, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Server 2016, Windows Server 2019 without problem. This will not require special privileges like Administrator.

DNS Cache

For every domain name DNS will query to the DNS Server normally. But this may create bottleneck in busy times. In order to prevent this bottleneck DNS services uses cache mechanism. Learned DNS records are stored in a cache for some time. If during this period a DNS is querid cache returns if exists.

Print and List Current DNS Cache Entries

We can print or list currently cached DNS entries with the /displaydns option of ipconfig command.

Print and List Current DNS Cache Entries
Print and List Current DNS Cache Entries

As we can see from screenshot domain names are stored in DNS cache with related information. There is following information

  • Record NAme
  • Record Type
  • Time To Live
  • Data Length
  • Section
  • Record Type

Flush DNS Entries with ipconfig /flushdns Command

In order to clear this DNS cache we will use ipconfig command with /flushdns parameter. This will remove all dns extries except localhost because it is local system dns record.

Flush DNS
Flush DNS

We can see that flush is completed successfully from screenshot.

LEARN MORE  How To Flush DNS For Windows and Linux Operating Systems

Run Command

In previous example we have used command line which is named cmd.exe . We can also run ipconfig /flushdns command from Run like below.

Run Command
Run Command

Check DNS Cache Entries Whether Flushed

We can check wether flush is effective with the ipconfig /displaydns command again like below.

Check DNS Cache Entries Whether Flushed
Check DNS Cache Entries Whether Flushed

As we can see other DNS entries are deleted succesfully. There is only localhost and arpa DNS erntries which are static.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-flush-dns-and-reset-tcp-ip-with-ipconfig-flushdns-command-in-windows/
PINTEREST
PINTEREST
INSTAGRAM