Is discoveryutil mdnsflushcache synchronous or asynchronous?

I am trying to flush my cache with:


sudo discoveryutil mdnsflushcache

sudo discoveryutil udnsflushcache


And then immediately run a curl requesting a file from the web. I've had to add a sleep statement after the cache flushes in order for curl to pickup (request) the correct DNS information.


Is that correct? Or is something else going on here?

MacBook Pro with Retina display, OS X Yosemite (10.10.2)

Posted on Feb 25, 2015 4:55 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is discoveryutil mdnsflushcache synchronous or asynchronous?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.