|
TCP/IP DNS Name Resolution and Information Lookup Utilities (nslookup, host and dig)
(Page 4 of 5)
The host Utility
The first alternative to nslookup,
host, is most often used for simple queries such as would normally
be performed using nslookups non-interactive mode. It is
invoked in the same way as non-interactive nslookup:
host <host> [<server>]
The output is also similar to that
of non-interactive nslookup, but less verbose. An example is
shown in Table 292.
Table 292: DNS Name Resolution Using the host Utility
%host www.pcguide.com
www.pcguide.com is an alias for pcguide.com.
pcguide.com has address 209.68.14.80
|
Even though host does not
operate interactively, it includes a number of options that can allow
an administrator to get the same information that would have been obtained
using nslookups interactive mode. Some of the more common options
are shown in Table 293.
Table 293: Typical host Utility Options and Parameters
Option
/ Parameters
|
Description
|
-d
|
Turn on debug mode.
|
-l
|
Provides a
complete list of information for a domain; this is similar to the ls
command in interactive nslookup. This may be used with the -t
option to select only a particular type of resource record for the domain.
|
-r
|
Disable recursion in the request.
When this is specified, only the server directly queried will return
any information; it will not query other servers.
|
-t <querytype>
|
Specifies a
query for a particular resource record type, allowing any type of DNS
information to be retrieved.
|
-v
|
Use verbose mode for output (additional
details are provided).
|
-w
|
Wait as long
as necessary for a response (no timeout).
|
| If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support! |
|
|
Home -
Table Of Contents - Contact Us
The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005
© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.
|