Breaking News
Home / Sys Admin / Mac / How to reload DNS Cache in Mac OSX?

How to reload DNS Cache in Mac OSX?

In order to refresh the DNS cache in Mac OSX, execute the dscacheutil command with –flashcache as the parameter.

Usage: dscacheutil -h
dscacheutil -q category [-a key value] dscacheutil -cachedump [-buckets] [-entries [category]] dscacheutil -configuration
dscacheutil -flushcache
dscacheutil -statistics

Open terminal and execute the command

mini:~ ma$ dscacheutil -flushcache
mini:~ ma$

This command will reload the cache and now you should be able to resolve any domain names that were previously not mapping to an IP or were pointing to an old IP.[pb_builder]

Check Also


Howto disable MAMP PHP script cache?

MAMP 2.2 uses OPCache to cache PHP scripts. So if you make a change to …

Advertisment ad adsense adlogger