Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 23, 2002 12:00 AM

How can I view and clear my DNS cache content?

Windows IT Pro
InstantDoc ID #27023
Rating: (30)

A. When a Windows XP or Windows 2000 machine queries a DNS server, the response is either positive (a match was found) or negative (no match was found). The OS stores these results in a local DNS cache so that local clients don't repeatedly query the DNS server for the same address. These DNS cache entries are known as DNS resource records, and the DNS resolver always checks the local cache before it queries the DNS server.

To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type

C:\> ipconfig /displaydns

Each entry shows the remaining Time to Live (TTL) in seconds. To clear the cache, go to the command prompt and type

C:\> ipconfig /flushdns

Flushing the DNS cache clears all entries and reloads the entries from the Hosts file.

Related Content:

ARTICLE TOOLS

Comments
  • amer
    4 years ago
    Nov 01, 2008

    i got the same problem and i did disabled my anti- virus and still can't display it or even clear it

  • stock
    5 years ago
    Jun 19, 2007

    its simple

    1- rename netlogon.dnb and netlogon.dns in c:\\windows\\system32
    run ipconfig /flushdns & net stop netlogon & net start netlogon & ipconfig /registerdns

    it will work :)

  • stock
    5 years ago
    Jun 19, 2007

    guys
    send your queries to
    stock.broker@rediffmail.com

  • stock
    5 years ago
    Jun 19, 2007

    go to c:\\windows\\system32
    renamne netlogon.dns and netlogon.dnb
    run
    ipconfig /flushdns
    ipconfig /registerdns
    net stop netlogon
    net start netlogon
    net stop dns
    net start dns
    it should be fixed

  • joe
    5 years ago
    May 02, 2007

    I had to combine 2 things from this article to clear my dns cache successfully:

    Step 1 - run the ipconfig /flushdns command
    Step 2 - restart your DNS Client in your Services

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.