06 April 2012

How to clear/reset DNS cache on Windows XP / Linux

Windows XP remembers failed ("Unable to resolve" - DNS requests) entries for a few minutes. This can be very unpleasant when moving and debugging/developing web-sites. As long as that failed entry sits in your DNS cache, your box will continue to give you a "Unable to resolve" error. By cleaning out your DNS cache, you can fix this problem.

Clear DNS cache on Windows XP

Start -> Run -> cmd [ENTER]
C:WINDOWS> ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.


Clear DNS cache on Linux (Red Hat / Suse)

# service nscd restart

Shutting down Name Service Cache Daemon         done
Starting Name Service Cache Daemon              done

For both situations you need to be root/Administrator.

On FreeBSD, applications clients query the DNS server every time they need a DNS record.

[SRC]


biOos

No comments: