[osx] - get secondary DNS

This PR will get secondary DNS on osx. Sleep(100); is added as popen takes sometime to finish.

This is the proper PR against master.

thx @amet 

superseeds #5358