poshost - Simple query program producing human-readable output
poshost [] [domainname] [querytype]
This is a simple console query program, that gives it answers in a simple, 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.:
> poshost @ google.nl
Querying #53 for {google.nl.,A}
Received answer from #53:
Authoritive answer
Answers for google.nl.:
-> [A]
-> [A]
<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.
In its simplest form, poshost prints out the root nameservers:
poshost
To find out the addresses of posadis.org, do:
poshost posadis.org
Or, to query another nameserver:
poshost @192.168.1.102 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:
poshost 1.1.168.192.in-addr.arpa
poshost .192.168.1.1
posadis(1), posask(1), dnsquery(1)