add function to flush dns cache on osx