wait until the DNS is properly setup