Subscribe to Windows IT Pro
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

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