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; abbreviations = q, ty)
143
144           [no]recurse
145               Tell the name server to query other servers if it does not have
146               the information.
147
148               (Default = recurse; abbreviation = [no]rec)
149
150           ndots=number
151               Set the number of dots (label separators) in a domain that will
152               disable searching. Absolute names always stop searching.
153
154           retry=number
155               Set the number of retries to number.
156
157           timeout=number
158               Change the initial timeout interval for waiting for a reply to
159               number seconds.
160
161           [no]vc
162               Always use a virtual circuit when sending requests to the
163               server.
164
165               (Default = novc)
166
167           [no]fail
168               Try the next nameserver if a nameserver responds with SERVFAIL
169               or a referral (nofail) or terminate query (fail) on such a
170               response.
171
172               (Default = nofail)
173
174

RETURN VALUES

176       nslookup returns with an exit status of 1 if any query failed, and 0
177       otherwise.
178

IDN SUPPORT

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

IDN SUPPORT

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

FILES

199       /etc/resolv.conf
200

SEE ALSO

202       dig(1), host(1), named(8).
203

AUTHOR

205       Internet Systems Consortium, Inc.
206
208       Copyright © 2004-2007, 2010, 2013-2019 Internet Systems Consortium,
209       Inc. ("ISC")
210
211
212
213ISC                               2014-01-24                       NSLOOKUP(1)
Impressum