dnsip — look up the IP address(es) of a domain name
dnsip
{fqdn
...}
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.
If fqdn
does not exist, dnsip prints a blank line.
You can list several fqdn
s; 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.