How to Flush DNS cache on Linux & Mac OSX

ADVERTISEMENTS

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 Related Reading

SHARE IT NOW

Add a Comment

*