nslookup-pisilinux.patch 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. diff -ur bind-9.2.3-orig//bin/dig/nslookup.8 bind-9.2.3/bin/dig/nslookup.8
  2. --- bind-9.2.3-orig/bin/dig/nslookup.8 2005-09-30 23:11:23.000000000 +0300
  3. +++ bind-9.2.3/bin/dig/nslookup.8 2005-09-30 23:10:36.000000000 +0300
  4. @@ -0,0 +1,534 @@
  5. +.\"
  6. +.\" ++Copyright++ 1985, 1989
  7. +.\" -
  8. +.\" Copyright (c) 1985, 1989
  9. +.\" The Regents of the University of California. All rights reserved.
  10. +.\"
  11. +.\" Redistribution and use in source and binary forms, with or without
  12. +.\" modification, are permitted provided that the following conditions
  13. +.\" are met:
  14. +.\" 1. Redistributions of source code must retain the above copyright
  15. +.\" notice, this list of conditions and the following disclaimer.
  16. +.\" 2. Redistributions in binary form must reproduce the above copyright
  17. +.\" notice, this list of conditions and the following disclaimer in the
  18. +.\" documentation and/or other materials provided with the distribution.
  19. +.\" 3. All advertising materials mentioning features or use of this software
  20. +.\" must display the following acknowledgement:
  21. +.\" This product includes software developed by the University of
  22. +.\" California, Berkeley and its contributors.
  23. +.\" 4. Neither the name of the University nor the names of its contributors
  24. +.\" may be used to endorse or promote products derived from this software
  25. +.\" without specific prior written permission.
  26. +.\"
  27. +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  28. +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  31. +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  32. +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  33. +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  34. +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35. +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  36. +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  37. +.\" SUCH DAMAGE.
  38. +.\" -
  39. +.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
  40. +.\"
  41. +.\" Permission to use, copy, modify, and distribute this software for any
  42. +.\" purpose with or without fee is hereby granted, provided that the above
  43. +.\" copyright notice and this permission notice appear in all copies, and that
  44. +.\" the name of Digital Equipment Corporation not be used in advertising or
  45. +.\" publicity pertaining to distribution of the document or software without
  46. +.\" specific, written prior permission.
  47. +.\"
  48. +.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  49. +.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  50. +.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
  51. +.\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  52. +.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  53. +.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  54. +.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  55. +.\" SOFTWARE.
  56. +.\" -
  57. +.\" --Copyright--
  58. +.\"
  59. +.\" @(#)nslookup.8 5.3 (Berkeley) 6/24/90
  60. +.\"
  61. +.Dd June 24, 1990
  62. +.Dt NSLOOKUP 8
  63. +.Os BSD 4
  64. +.Sh NAME
  65. +.Nm nslookup
  66. +.Nd query Internet name servers interactively
  67. +.Sh SYNOPSIS
  68. +.Nm nslookup
  69. +.Op Fl option Ar ...
  70. +.Op Ar host-to-find | Fl Op Ar server
  71. +.Sh DESCRIPTION
  72. +.Ic Nslookup
  73. +is a program to query Internet domain name servers.
  74. +.Ic Nslookup
  75. +has two modes: interactive and non-interactive.
  76. +Interactive mode allows the user to query name servers for
  77. +information about various hosts and domains or to print a list of hosts
  78. +in a domain.
  79. +Non-interactive mode is used to print just the name and requested information
  80. +for a host or domain.
  81. +.Sh ARGUMENTS
  82. +Interactive mode is entered in the following cases:
  83. +.Bl -tag -width "a) "
  84. +.It a)
  85. +when no arguments are given (the default name server will be used),
  86. +.It b)
  87. +when the first argument is a hyphen (-) and the second argument
  88. +is the host name or Internet address of a name server.
  89. +.El
  90. +.Pp
  91. +Non-interactive mode is used when the name or Internet address
  92. +of the host to be looked up
  93. +is given as the first argument. The optional second argument specifies
  94. +the host name or address of a name server.
  95. +.Pp
  96. +The options listed under the
  97. +.Dq Li set
  98. +command below can be specified in
  99. +the
  100. +.Pa .nslookuprc
  101. +file in the user's home directory if they are listed
  102. +one per line. Options can also be specified
  103. +on the command line if they precede the arguments and are prefixed with
  104. +a hyphen. For example, to change the default query type to host information,
  105. +and the initial timeout to 10 seconds, type:
  106. +.Bd -literal -offset indent
  107. + nslookup -query=hinfo -timeout=10
  108. +.Ed
  109. +.Sh INTERACTIVE COMMANDS
  110. +Commands may be interrupted at any time by typing a control-C.
  111. +To exit, type a control-D
  112. +.Pq Dv EOF
  113. +or type
  114. +.Li exit .
  115. +The command line length must be less than 256 characters.
  116. +To treat a built-in command as a host name,
  117. +precede it with an escape character
  118. +.Pq .&\\ .
  119. +.Sy N.B.: An unrecognized command will be interpreted as a host name.
  120. +.Bl -tag -width "lserver"
  121. +.It Ar host Op Ar server
  122. +Look up information for
  123. +.Ar host
  124. +using the current default server or using
  125. +.Ar server ,
  126. +if specified.
  127. +If
  128. +.Ar host
  129. +is an Internet address and the query type is
  130. +.Dv A
  131. +or
  132. +.Dv PTR ,
  133. +the name of the host is returned.
  134. +If
  135. +.Ar host
  136. +is a name and does not have a trailing period, the default
  137. +domain name is appended to the name. (This behavior depends on the state of the
  138. +.Ic set
  139. +options
  140. +.Ic domain , srchlist , defname ,
  141. +and
  142. +.Ic search . )
  143. +.Pp
  144. +To look up a host not in the current domain, append a period to
  145. +the name.
  146. +.It Ic server Ar domain
  147. +.It Ic lserver Ar domain
  148. +Change the default server to
  149. +.Ar domain ;
  150. +.Ic lserver
  151. +uses the initial server to look up information about
  152. +.Ar domain ,
  153. +while
  154. +.Ic server
  155. +uses the current default server.
  156. +If an authoritative answer can't be found, the names of servers
  157. +that might have the answer are returned.
  158. +.It Ic root
  159. +Changes the default server to the server for the root of the domain name space.
  160. +Currently, the host
  161. +.Li ns.internic.net
  162. +is used.
  163. +(This command is a synonym for
  164. +.Dq Ic lserver ns.internic.net . )
  165. +The name of the root server can be changed with the
  166. +.Dq Ic set root
  167. +command.
  168. +.It Xo Ic finger Op Ar name
  169. +.Op Ic > Ar filename
  170. +.Xc
  171. +.It Xo Ic finger Op Ar name
  172. +.Op Ic >> Ar filename
  173. +.Xc
  174. +Connects with the finger server on the current host.
  175. +The current host is defined when a previous lookup for a host
  176. +was successful and returned address information (see the
  177. +.Dq Ic set querytype=A
  178. +command).
  179. +The
  180. +.Ar name
  181. +is optional.
  182. +.Ic >
  183. +and
  184. +.Ic >>
  185. +can be used to redirect output in the usual manner.
  186. +.It Xo Ic ls Op Ar option
  187. +.Ar domain Op Ic > Ar filename
  188. +.Xc
  189. +.It Xo Ic ls Op Ar option
  190. +.Ar domain Op Ic >> Ar filename
  191. +.Xc
  192. +List the information available for
  193. +.Ar domain ,
  194. +optionally creating or appending to
  195. +.Ar filename .
  196. +The default output contains host names and their Internet addresses.
  197. +.Ar Option
  198. +can be one of the following:
  199. +.Bl -tag -width "-a "
  200. +.It Fl t Ar querytype
  201. +lists all records of the specified type (see
  202. +.Ar querytype
  203. +below).
  204. +.It Fl a
  205. +lists aliases of hosts in the domain;
  206. +synonym for
  207. +.Dq Fl t Dv CNAME .
  208. +.It Fl d
  209. +lists all records for the domain;
  210. +synonym for
  211. +.Dq Fl t Dv ANY .
  212. +.It Fl h
  213. +lists CPU and operating system information for the domain;
  214. +synonym for
  215. +.Dq Fl t Dv HINFO .
  216. +.It Fl s
  217. +lists well-known services of hosts in the domain;
  218. +synonym for
  219. +.Dq Fl t Dv WKS .
  220. +.El
  221. +.Pp
  222. +When output is directed to a file, hash marks are printed for every
  223. +50 records received from the server.
  224. +.It Ic view Ar filename
  225. +Sorts and lists the output of previous
  226. +.Ic ls
  227. +command(s) with
  228. +.Xr more 1 .
  229. +.It Ic help
  230. +.It Ic ?
  231. +Prints a brief summary of commands.
  232. +.It Ic exit
  233. +Exits the program.
  234. +.It Xo Ic set Ar keyword
  235. +.Ns Op = Ns Ar value
  236. +.Xc
  237. +This command is used to change state information that affects the lookups.
  238. +Valid keywords are:
  239. +.Bl -tag -width "class=v"
  240. +.It Ic all
  241. +Prints the current values of the frequently-used options to
  242. +.Ic set .
  243. +Information about the current default server and host is also printed.
  244. +.It Ic class= Ns Ar value
  245. +Change the query class to one of:
  246. +.Bl -tag -width "HESIOD "
  247. +.It Dv IN
  248. +the Internet class
  249. +.It Dv CHAOS
  250. +the Chaos class
  251. +.It Dv HESIOD
  252. +the MIT Athena Hesiod class
  253. +.It Dv ANY
  254. +wildcard (any of the above)
  255. +.El
  256. +.Pp
  257. +The class specifies the protocol group of the information.
  258. +.Pp
  259. +(Default =
  260. +.Dv IN ;
  261. +abbreviation =
  262. +.Ic cl )
  263. +.It Xo Op Ic no
  264. +.Ns Ic debug
  265. +.Xc
  266. +Turn debugging mode on. A lot more information is printed about the
  267. +packet sent to the server and the resulting answer.
  268. +.Pp
  269. +(Default =
  270. +.Ic nodebug ;
  271. +abbreviation =
  272. +.Xo Op Ic no
  273. +.Ns Ic deb )
  274. +.Xc
  275. +.It Xo Op Ic no
  276. +.Ns Ic d2
  277. +.Xc
  278. +Turn exhaustive debugging mode on.
  279. +Essentially all fields of every packet are printed.
  280. +.Pp
  281. +(Default =
  282. +.Ic nod2 )
  283. +.It Ic domain= Ns Ar name
  284. +Change the default domain name to
  285. +.Ar name .
  286. +The default domain name is appended to a lookup request depending on the
  287. +state of the
  288. +.Ic defname
  289. +and
  290. +.Ic search
  291. +options.
  292. +The domain search list contains the parents of the default domain if it has
  293. +at least two components in its name.
  294. +For example, if the default domain
  295. +is CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and Berkeley.EDU.
  296. +Use the
  297. +.Dq Ic set srchlist
  298. +command to specify a different list.
  299. +Use the
  300. +.Dq Ic set all
  301. +command to display the list.
  302. +.Pp
  303. +(Default = value from
  304. +.Xr hostname 1 ,
  305. +.Pa /etc/resolv.conf ,
  306. +or
  307. +.Ev LOCALDOMAIN;
  308. +abbreviation =
  309. +.Ic do )
  310. +.It Ic srchlist= Ns Ar name1/name2/...
  311. +Change the default domain name to
  312. +.Ar name1
  313. +and the domain search list
  314. +to
  315. +.Ar name1 , name2 ,
  316. +etc. A maximum of 6 names separated by slashes (/)
  317. +can be specified.
  318. +For example,
  319. +.Bd -literal -offset indent
  320. +set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
  321. +.Ed
  322. +.Pp
  323. +sets the domain to lcs.MIT.EDU and the search list to the three names.
  324. +This command overrides the
  325. +default domain name and search list of the
  326. +.Dq Ic set domain
  327. +command.
  328. +Use the
  329. +.Dq Ic set all
  330. +command to display the list.
  331. +.Pp
  332. +(Default = value based on
  333. +.Xr hostname 1 ,
  334. +.Pa /etc/resolv.conf ,
  335. +or
  336. +.Ev LOCALDOMAIN;
  337. +abbreviation =
  338. +.Ic srchl )
  339. +.It Xo Op Ic no
  340. +.Ns Ic defname
  341. +.Xc
  342. +If set, append the default domain name to a single-component lookup request
  343. +(i.e., one that does not contain a period).
  344. +.Pp
  345. +(Default =
  346. +.Ic defname ;
  347. +abbreviation =
  348. +.Xo Op Ic no
  349. +.Ns Ic defname )
  350. +.Xc
  351. +.It Xo Op Ic no
  352. +.Ns Ic search
  353. +.Xc
  354. +If the lookup request contains at least one period but
  355. +.Em doesn't
  356. +end with a trailing period, append the domain names in the domain search list
  357. +to the request until an answer is received.
  358. +.Pp
  359. +(Default =
  360. +.Ic search ;
  361. +abbreviation =
  362. +.Xo Op Ic no
  363. +.Ns Ic sea )
  364. +.Xc
  365. +.It Ic port= Ns Ar value
  366. +Change the default TCP/UDP name server port to
  367. +.Ar value .
  368. +.Pp
  369. +(Default = 53;
  370. +abbreviation =
  371. +.Ic \&po )
  372. +.It Ic querytype= Ns Ar value
  373. +.It Ic type= Ns Ar value
  374. +Change the type of information query to one of:
  375. +.Bl -tag -width "HINFO "
  376. +.It Dv A
  377. +the host's Internet address.
  378. +.It Dv CNAME
  379. +the canonical name for an alias.
  380. +.It Dv HINFO
  381. +the host CPU and operating system type.
  382. +.It Dv MINFO
  383. +the mailbox or mail list information.
  384. +.It Dv MX
  385. +the mail exchanger.
  386. +.It Dv NS
  387. +the name server for the named zone.
  388. +.It Dv PTR
  389. +the host name if the query is an Internet address;
  390. +otherwise, the pointer to other information.
  391. +.It Dv SOA
  392. +the domain's
  393. +.Dq start-of-authority
  394. +information.
  395. +.It Dv TXT
  396. +the text information.
  397. +.It Dv UINFO
  398. +the user information.
  399. +.It Dv WKS
  400. +the supported well-known services.
  401. +.El
  402. +.Pp
  403. +Other types
  404. +.Pq Dv ANY, AXFR, MB, MD, MF, NULL
  405. +are described in the RFC-1035 document.
  406. +.Pp
  407. +(Default =
  408. +.Dv A ;
  409. +abbreviations =
  410. +.Ic q , ty )
  411. +.It Xo Op Ic no
  412. +.Ns Ic recurse
  413. +.Xc
  414. +Tell the name server to query other servers if it does not have the
  415. +information.
  416. +.Pp
  417. +(Default =
  418. +.Ic recurse ;
  419. +abbreviation =
  420. +.Xo Op Ic no
  421. +.Ns Ic rec )
  422. +.Xc
  423. +.It Ic retry= Ns Ar number
  424. +Set the number of retries to
  425. +.Ar number .
  426. +When a reply to a request is not received within a certain
  427. +amount of time (changed with
  428. +.Dq Ic set timeout ) ,
  429. +the timeout period is doubled and the request is resent.
  430. +The retry value controls how many times a request is resent before giving up.
  431. +.Pp
  432. +(Default = 4, abbreviation =
  433. +.Ic ret )
  434. +.It Ic root= Ns Ar host
  435. +Change the name of the root server to
  436. +.Ar host .
  437. +This affects the
  438. +.Dq Ic root
  439. +command.
  440. +.Pp
  441. +(Default =
  442. +.Ic ns.internic.net. ;
  443. +abbreviation =
  444. +.Ic ro )
  445. +.It Ic timeout= Ns Ar number
  446. +Change the initial timeout interval for waiting for a reply to
  447. +.Ar number
  448. +seconds. Each retry doubles the timeout period.
  449. +.Pp
  450. +(Default = 5 seconds; abbreviation =
  451. +.Ic ti )
  452. +.It Xo Op Ic no
  453. +.Ns Ic vc
  454. +.Xc
  455. +Always use a virtual circuit when sending requests to the server.
  456. +.Pp
  457. +(Default =
  458. +.Ic novc ;
  459. +abbreviation =
  460. +.Xo Op Ic no
  461. +.Ns Ic v )
  462. +.Xc
  463. +.It Xo Op Ic no
  464. +.Ns Ic ignoretc
  465. +.Xc
  466. +Ignore packet truncation errors.
  467. +.Pp
  468. +(Default =
  469. +.Ic noignoretc ;
  470. +abbreviation =
  471. +.Xo Op Ic no
  472. +.Ns Ic ig )
  473. +.Xc
  474. +.El
  475. +.El
  476. +.Sh DIAGNOSTICS
  477. +If the lookup request was not successful, an error message is printed.
  478. +Possible errors are:
  479. +.Bl -tag -width "Timed"
  480. +.It Li Timed out
  481. +The server did not respond to a request after a certain amount of
  482. +time (changed with
  483. +.Dq Ic set timeout= Ns Ar value )
  484. +and a certain number of retries (changed with
  485. +.Dq Ic set retry= Ns Ar value ) .
  486. +.It Li \&No response from server
  487. +No name server is running on the server machine.
  488. +.It Li \&No records
  489. +The server does not have resource records of the current query type for the
  490. +host, although the host name is valid.
  491. +The query type is specified with the
  492. +.Dq Ic set querytype
  493. +command.
  494. +.It Li Non-existent domain
  495. +The host or domain name does not exist.
  496. +.It Li Connection refused
  497. +.It Li Network is unreachable
  498. +The connection to the name or finger server could not be made
  499. +at the current time.
  500. +This error commonly occurs with
  501. +.Ic ls
  502. +and
  503. +.Ic finger
  504. +requests.
  505. +.It Li Server failure
  506. +The name server found an internal inconsistency in its database
  507. +and could not return a valid answer.
  508. +.It Li Refused
  509. +The name server refused to service the request.
  510. +.It Li Format error
  511. +The name server found that the request packet was not in the proper format.
  512. +It may indicate an error in
  513. +.Nm nslookup .
  514. +.El
  515. +.Sh FILES
  516. +.Bl -tag -width "/usr/share/misc/nslookup.helpXXX" -compact
  517. +.It Pa /etc/resolv.conf
  518. +initial domain name and name server addresses
  519. +.It Pa $HOME/.nslookuprc
  520. +user's initial options
  521. +.It Pa /usr/share/misc/nslookup.help
  522. +summary of commands
  523. +.Sh ENVIRONMENT
  524. +.Bl -tag -width "HOSTALIASESXXXX" -compact
  525. +.It Ev HOSTALIASES
  526. +file containing host aliases
  527. +.It Ev LOCALDOMAIN
  528. +overrides default domain
  529. +.Sh SEE ALSO
  530. +.Xr named 8 ,
  531. +.Xr resolver 3 ,
  532. +.Xr resolver 5 ;
  533. +RFC-1034,
  534. +.Dq Domain Names - Concepts and Facilities ;
  535. +RFC-1035,
  536. +.Dq Domain Names - Implementation and Specification .
  537. +.Sh AUTHOR
  538. +Andrew Cherenson