News for hackers. Stuff that matters.
Re:OS X DNS cache reset script by trebor on Tuesday June 14, 2016 @11:31AM (#11902641)
I'm not sure. The `dscacheutil -flushcache` command he lists for Snow Leopard still works for me (OS X Yosemite here).
Re:OS X DNS cache reset script by NEDM64 on Tuesday June 14, 2016 @11:37AM (#11902691)
And it still works for me on macOS 10.12.

So I see absolutely no point here.

Re:OS X DNS cache reset script by masklinn on Tuesday June 14, 2016 @11:44AM (#11902754)
The command doesn't fail but does it actually flush the DNS cache, or does it flush the Directory Cache which isn't used for DNS anymore (or possibly at all, on my El Cap machine flushing succeeds but any query of the cache content or its statistics replies "Unable to get details from the cache node")
Re:OS X DNS cache reset script by sirn on Tuesday June 14, 2016 @12:23PM (#11903100)
The command did flush the Directory Service cache, but DNS is no longer part of it. You can still use its query command though.

    dscacheutil -q host -a name www.example.com
On the topic, easiest way to see if dscacheutil -flushcache work or not is to probably do something like:

    dscacheutil -q host -a name www.example.com
    # Make sure it's in the cache prior to running.
    
    sudo dscacheutil -flushcache
    dscacheutil -q host -a name www.example.com
    # Notice if there's a slight delay for the lookup.
    
    sudo killall -HUP mDNSResponder
    dscacheutil -q host -a name www.example.com
    # Notice if there's a slight delay for the lookup.