Name

dnsip — look up the IP address(es) of a domain name

Synopsis

dnsip {fqdn...}

Description

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 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.

See also

dnsipq(1)

a similar tool that also applies name qualification

dnsname(1)

a tool that looks up the domain name(es) of an IP address

History

dnsip was originally part of Daniel J. Bernstein's djbdns toolset in 1999.

Author

Original code and documentation by Daniel J. Bernstein. Documentation modernizations by Jonathan de Boyne Pollard.