[osx] get secondary DNS

this PR will get secondary DNS on osx. Sleep(100); is added as popen takes sometime to finish.
btw i am planning to give this a test too (hopefully at the weekend) - first i need to finish my hackbook hw upgrade project ;)