1NSLOOKUP(1) BIND9 NSLOOKUP(1)
2
3
4
6 nslookup - query Internet name servers interactively
7
9 nslookup [-option] [name | -] [server]
10
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
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
28Non-interactive mode is used when the name or Internet address of the host to
29be looked up is given as the first argument. The optional second argument
30specifies the host name or address of a name server.
31
32Options can also be specified on the command line if they precede the
33arguments and are prefixed with a hyphen. For example, to change the default
34query type to host information, and the initial timeout to 10 seconds, type:
35
37 host [server]
38 Look up information for host using the current default server or
39 using server, if specified. If host is an Internet address and the
40 query type is A or PTR, the name of the host is returned. If host
41 is a name and does not have a trailing period, the search list is
42 used to qualify the name.
43
44 To look up a host not in the current domain, append a period to the
45 name.
46
47 server domain
48
49 lserver domain
50 Change the default server to domain; lserver uses the initial
51 server to look up information about domain, while server uses the
52 current default server. If an authoritative answer can't be found,
53 the names of servers that might have the answer are returned.
54
55 root
56 not implemented
57
58 finger
59 not implemented
60
61 ls
62 not implemented
63
64 view
65 not implemented
66
67 help
68 not implemented
69
70 ?
71 not implemented
72
73 exit
74 Exits the program.
75
76 set keyword[=value]
77 This command is used to change state information that affects the
78 lookups. Valid keywords are:
79
80 all
81 Prints the current values of the frequently used options to
82 set. Information about the current default server and host
83 is also printed.
84
85 class=value
86 Change the query class to one of:
87
88 IN
89 the Internet class
90
91 CH
92 the Chaos class
93
94 HS
95 the Hesiod class
96
97 ANY
98 wildcard
99
100 The class specifies the protocol group of the
101 information.
102
103 (Default = IN; abbreviation = cl)
104
105 [no]debug
106 Turn on or off the display of the full response packet and
107 any intermediate response packets when searching.
108
109 (Default = nodebug; abbreviation = [no]deb)
110
111 [no]d2
112 Turn debugging mode on or off. This displays more about
113 what nslookup is doing.
114
115 (Default = nod2)
116
117 domain=name
118 Sets the search list to name.
119
120 [no]search
121 If the lookup request contains at least one period but
122 doesn't end with a trailing period, append the domain names
123 in the domain search list to the request until an answer is
124 received.
125
126 (Default = search)
127
128 port=value
129 Change the default TCP/UDP name server port to value.
130
131 (Default = 53; abbreviation = po)
132
133 querytype=value
134
135 type=value
136 Change the type of the information query.
137
138 (Default = A; abbreviations = q, ty)
139
140 [no]recurse
141 Tell the name server to query other servers if it does not
142 have the information.
143
144 (Default = recurse; abbreviation = [no]rec)
145
146 retry=number
147 Set the number of retries to number.
148
149 timeout=number
150 Change the initial timeout interval for waiting for a reply
151 to number seconds.
152
153 [no]vc
154 Always use a virtual circuit when sending requests to the
155 server.
156
157 (Default = novc)
158
159 [no]fail
160 Try the next nameserver if a nameserver responds with
161 SERVFAIL or a referral (nofail) or terminate query (fail)
162 on such a response.
163
164 (Default = nofail)
165
166
167
169 /etc/resolv.conf
170
172 dig(1), host(1), named(8).
173
175 Andrew Cherenson
176
178 Copyright © 2004-2007 Internet Systems Consortium, Inc. ("ISC")
179
180
181
182BIND9 Jun 30, 2000 NSLOOKUP(1)