How to Flush DNS cache on Linux & Mac OSX

Wednesday, September 30th, 2009

Clearing or flushing DNS cache helps in efficient and faster internet surfing. It also prevents issue as a result of stale DNS cache. We have already seen procedure to Flush DNS cache on Windows based computer. Following are quick steps to flush DNS on Linux and Mac OSX.

Flush DNS cache on Linux

With nscd installed, type following commands in the terminal:

sudo apt-get install nscd

and then

sudo /etc/init.d/nscd restart

Flush DNS on Mac OSX

Use lookupd -flushcache command in Mac OSX.

Use dscacheutil -flushcache for Leopard and above OS.

▼ More Readings
  • How to clear / flush DNS cache to speed up internet?
    DNS (Domain Name Server) cache is stored by Windows (XP and Vista). This cache helps is faster opening of websites already visited on the computer. However, stale DNS cache can cause lot of issues including: opening...
  • Could not flush the DNS Resolver Cache error message
    While trying to clear DNS Cache on Windows XP or Vista computer, you might get error “Could not flush the DNS Resolver Cache” instead of successful flushing of DNS cache. We generally get this error when...
  • How to open docx files on Mac computer?
    Docx is a new file format for files created in newer version of Microsoft Office software. In case you are using old version of MS Office software and you receive docx word file created in newer...
Loading
Add a Comment
Have your say, add a comment
If you want an image to show with your comment, go get a gravatar!