dnsip — look up the IP address(es) of a domain name
dnsip looks up A resource records for
fqdn in the Domain Name System and prints the IP address(es) of
fqdn on a single line.
fqdn does not exist, dnsip prints a blank line.
You can list several
fqdns; dnsip prints each result on a separate line.
Normally dnsip exits 0. If it encounters a temporary problem that prevents it from determining the list of IP addresses, it prints an error message and exits 111.
dnsip makes all DNS lookups using the locally configured DNS proxy server. See dnsqr(1) for how this server is found.
a similar tool that also applies name qualification
a tool that looks up the domain name(es) of an IP address