1NSLOOKUP(1)                          BIND9                         NSLOOKUP(1)
2
3
4

NAME

6       nslookup - query Internet name servers interactively
7

SYNOPSIS

9       nslookup [-option] [name | -] [server]
10

DESCRIPTION

12       Nslookup is a program to query Internet domain name servers.  Nslookup
13       has two modes: interactive and non-interactive. Interactive mode allows
14       the user to query name servers for information about various hosts and
15       domains or to print a list of hosts in a domain. Non-interactive mode
16       is used to print just the name and requested information for a host or
17       domain.
18

ARGUMENTS

20       Interactive mode is entered in the following cases:
21
22        1. when no arguments are given (the default name server will be used)
23
24        2. when the first argument is a hyphen (-) and the second argument is
25           the host name or Internet address of a name server.
26
27       Non-interactive mode is used when the name or Internet address of the
28       host to be looked up is given as the first argument. The optional
29       second argument specifies the host name or address of a name server.
30
31       Options can also be specified on the command line if they precede the
32       arguments and are prefixed with a hyphen. For example, to change the
33       default query type to host information, and the initial timeout to 10
34       seconds, type:
35
36           nslookup -query=hinfo  -timeout=10
37
38
39       The -version option causes nslookup to print the version number and
40       immediately exits.
41

INTERACTIVE COMMANDS

43       host [server]
44           Look up information for host using the current default server or
45           using server, if specified. If host is an Internet address and the
46           query type is A or PTR, the name of the host is returned. If host
47           is a name and does not have a trailing period, the search list is
48           used to qualify the name.
49
50           To look up a host not in the current domain, append a period to the
51           name.
52
53       server domain
54
55       lserver domain
56           Change the default server to domain; lserver uses the initial
57           server to look up information about domain, while server uses the
58           current default server. If an authoritative answer can't be found,
59           the names of servers that might have the answer are returned.
60
61       root
62           not implemented
63
64       finger
65           not implemented
66
67       ls
68           not implemented
69
70       view
71           not implemented
72
73       help
74           not implemented
75
76       ?
77           not implemented
78
79       exit
80           Exits the program.
81
82       set keyword[=value]
83           This command is used to change state information that affects the
84           lookups. Valid keywords are:
85
86           all
87               Prints the current values of the frequently used options to
88               set. Information about the current default server and host is
89               also printed.
90
91           class=value
92               Change the query class to one of:
93
94               IN
95                   the Internet class
96
97               CH
98                   the Chaos class
99
100               HS
101                   the Hesiod class
102
103               ANY
104                   wildcard
105
106               The class specifies the protocol group of the information.
107
108               (Default = IN; abbreviation = cl)
109
110           [no]debug
111               Turn on or off the display of the full response packet and any
112               intermediate response packets when searching.
113
114               (Default = nodebug; abbreviation = [no]deb)
115
116           [no]d2
117               Turn debugging mode on or off. This displays more about what
118               nslookup is doing.
119
120               (Default = nod2)
121
122           domain=name
123               Sets the search list to name.
124
125           [no]search
126               If the lookup request contains at least one period but doesn't
127               end with a trailing period, append the domain names in the
128               domain search list to the request until an answer is received.
129
130               (Default = search)
131
132           port=value
133               Change the default TCP/UDP name server port to value.
134
135               (Default = 53; abbreviation = po)
136
137           querytype=value
138
139           type=value
140               Change the type of the information query.
141
142               (Default = A and then AAAA; abbreviations = q, ty)
143
144               Note: It is only possible to specify one query type, only the
145               default behavior looks up both when an alternative is not
146               specified.
147
148           [no]recurse
149               Tell the name server to query other servers if it does not have
150               the information.
151
152               (Default = recurse; abbreviation = [no]rec)
153
154           ndots=number
155               Set the number of dots (label separators) in a domain that will
156               disable searching. Absolute names always stop searching.
157
158           retry=number
159               Set the number of retries to number.
160
161           timeout=number
162               Change the initial timeout interval for waiting for a reply to
163               number seconds.
164
165           [no]vc
166               Always use a virtual circuit when sending requests to the
167               server.
168
169               (Default = novc)
170
171           [no]fail
172               Try the next nameserver if a nameserver responds with SERVFAIL
173               or a referral (nofail) or terminate query (fail) on such a
174               response.
175
176               (Default = nofail)
177
178

RETURN VALUES

180       nslookup returns with an exit status of 1 if any query failed, and 0
181       otherwise.
182

IDN SUPPORT

184       If nslookup has been built with IDN (internationalized domain name)
185       support, it can accept and display non-ASCII domain names.  nslookup
186       appropriately converts character encoding of domain name before sending
187       a request to DNS server or displaying a reply from the server. If you'd
188       like to turn off the IDN support for some reason, define the
189       IDN_DISABLE environment variable. The IDN support is disabled if the
190       variable is set when nslookup runs or when the standard output is not a
191       tty.
192

IDN SUPPORT

194       If nslookup has been built with IDN (internationalized domain name)
195       support, it can accept and display non-ASCII domain names.  nslookup
196       appropriately converts character encoding of domain name before sending
197       a request to DNS server or displaying a reply from the server. If you'd
198       like to turn off the IDN support for some reason, define the
199       IDN_DISABLE environment variable. The IDN support is disabled if the
200       variable is set when nslookup runs.
201

FILES

203       /etc/resolv.conf
204

SEE ALSO

206       dig(1), host(1), named(8).
207

AUTHOR

209       Internet Systems Consortium, Inc.
210
212       Copyright © 2004-2007, 2010, 2013-2020 Internet Systems Consortium,
213       Inc. ("ISC")
214
215
216
217ISC                               2014-01-24                       NSLOOKUP(1)
Impressum