Retry DNS lookups. Added more debug logging.