
For people working in web design or the domain industry, DNS cache is unwelcome most of the time — it stops you from instantly previewing updated nameservers or pages. Here are several ways to clear the local DNS cache:
1. Windows
Open Windows, bring up the search box, type cmd (or find Command Prompt under accessories).
When the black command-prompt window appears with >, type ipconfig /flushdns and press Enter.
Done — your DNS cache has been manually emptied. This method should work on any version of Windows.
2. Mac OS X
Open your Mac, click the Spotlight magnifier at the top right, and type terminal (or 终端机).
When the terminal shows $: if you're on 10.5 or later, type sudo dscacheutil -flushcache; if you're on a version earlier than 10.5, type lookupd -flushcache. If it asks for a password, enter your system password (the same one you use when installing software). While typing the password nothing appears on screen — no text, no asterisks — just type it and press Enter. Done, your DNS cache has been manually emptied.
3. Linux
Open your terminal and enter /etc/rc.d/init.d/nscd restart, or sudo /etc/init.d/nscd restart.
If the command above returns "command not found", your system doesn't have nscd installed yet — first run sudo aptitude install nscd, then re-run the restart command from above. Done, your DNS cache has been manually emptied.
Quantum Responses (0)