evapi: use getaddrinfo() instead of gethostbyname()