Switch libcutils from gethostbyname to getaddrinfo.

Needed for IPv6 support.

Bug: http://b/22559299
Change-Id: Id10d958b434b207e84bc2ec2ff83221f2c4e8168
1 file changed