add api getaddrinfo for dns