core: getaddrinfo() lookup error handling