dnsipq 1 user commands djbwares
dnsipq look up the IP address(es) of a domain name
`dnsipq` dn

## Description

`dnsipq` first feeds dn through name qualification. It then looks up A resource records for the result in the Domain Name System and prints the corresponding IP address(es) on a single line. If the qualified fqdn does not exist, `dnsipq` prints a blank line. You can list several dns; `dnsipq` prints each result on a separate line.

Normally `dnsipq` 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.

`dnsipq` makes all DNS lookups using the locally configured DNS proxy server(s). See djbdns-client 5 for how this server is found, for how name qualification operates, and for certain dn values and standard domain names that short-circuit DNS lookups to the proxy DNS server(s) and possibly name qualification as well.

## See also

dnsip 1

  a similar tool that does not apply name qualification

dnsname 1

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

## History

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

In the original Bernstein `dnsipq`, the mis-behaviour with stupid consequences and real-world liabilities of the original Bernstein DNS client library would occur. This undocumented behaviour was removed in 2025 and is not present in this version of `dnsipq`.

## Author

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