Fix static DNS assignment on Windows