Basic DNS resolution using getaddrinfo(3).
Hostname to be looked up.
Optional
Criteria for selecting the results.
Basic DNS resolution using getaddrinfo(3).