SYNTAX
poshost [@server] [domainname] [querytype]
DESCRIPTION
This is a simple console query program, that gives it answers in a sim-
ple, human-readable form, quite unlike the raw DNS messages shown by
its big brother, Posask. The result is displayed in the same way the
graphical "DNS querier" tool shows its answers, e.g.:
meilof@linux> poshost @216.239.32.10 google.nl
Querying 216.239.32.10#53 for {google.nl.,A}
Received answer from 216.239.32.10#53:
Authoritive answer
Answers for google.nl.:
-> [A] 216.239.39.100
-> [A] 216.239.37.100
OPTIONS
<server> - Server to query
<domainname> - Domain name to query.
<querytype> - Query type (e.g. a, ptr, mx, any)
If no server is given, the DNS server the system resolver uses is used
(Unix), or the DNS server at localhost (Windows). If no domain name or
type is given, a query for {.,NS} is assumed. If no query type is
given, "a" is assumed unless the domain name is in one of the
reverse-mapping zones such as in-addr.arpa. In that case, "ptr" is the
default query type.
EXAMPLES
In its simplest form, poshost prints out the root nameservers:
poshost
To find out the addresses of www.posadis.org, do:
poshost www.posadis.org
Or, to query another nameserver:
poshost @192.168.1.102 www.posadis.org
If we want to find the posadis.org mail servers:
poshost posadis.org mx
If we want to find out the domain name of 192.168.1.1, perform one of
the following, equivalent queries:
Man(1) output converted with
man2html