nsquery(1)
NAME
nsquery - name server query
SYNTAX
/usr/ucb/nsquery [ lookup ] [ host ] [ server ]
DESCRIPTION
The nsquery command provides an interface to obtain host name and address information.
OPTIONS
lookupRetrieves the host name, IP address, and aliases of the specified host. If no host or server is specified, the nsquery command obtains the information about the local system from the default BIND server. If the lookup option is not specified, the nsquery command obtains the information about the BIND server and host specified (or their defaults). If the system from which you issue the nsquery command is a BIND server, and you do not specify the lookup option, only information about that server is retrieved.
hostSpecifies the system for which you want host information. If no host is specified, the nsquery command obtains the information about the local system.
serverSpecifies the BIND server you want to query for the information. If no server is specified, the nsquery command queries the default BIND server.
FILES
/etc/named.bootBIND server boot file
/etc/namedbBIND server data file directory
/etc/namedb/named.hostsBIND server hosts file
/etc/namedb/named.revBIND server reverse address hosts file
/etc/namedb/named.localBIND server local host reverse address host file
/etc/namedb/named.caBIND server cache file
/etc/resolv.confBIND client data file
SEE ALSO
hostname(1), nslookup(1), nsquery(1), gethostent(3n), resolver(3), resolver(5), named(8)
Guide to the BIND Service