DCOS-47608 fix race condition when rewriting resolv.conf
DCOS-47608 fix race condition when rewriting resolv.conf

The bug was caused by a race condition that resulted in an empty
resolv.conf that has been picked up by DC/OS Diagnostics and then
Diagnostics was not able to resolve any hostname.

This bug only appears in Docker enviroments (i.e. dcos-e2e) causing
flaky tests.

dcos/dcos,kensipe/dcos,dcos/dcos,kensipe/dcos,dcos/dcos,dcos/dcos,kensipe/dcos,kensipe/dcos,dcos/dcos