getaddrinfo(3) protocol independent name-to-address lookup function gethostbyname(3) setups list of information for socket, connect/bind family, socket type, protocol number, socket address structure etc. User does not need to know sockaddr in detail. search based on hints (including flags) flexible for connect(2) / bind(2) hostname should be provided in numerical format ...