avoid a getaddrinfo if possible