You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
3.8 KiB

  1. .\" rblcheck.1
  2. .\" rblckeck manpage
  3. .\"
  4. .\" Copyright (C) 2005 Michael Tokarev <mjt@corpit.ru>
  5. .\" This file is part of UDNS library, an async DNS stub resolver.
  6. .\"
  7. .\" This library is free software; you can redistribute it and/or
  8. .\" modify it under the terms of the GNU Lesser General Public
  9. .\" License as published by the Free Software Foundation; either
  10. .\" version 2.1 of the License, or (at your option) any later version.
  11. .\"
  12. .\" This library is distributed in the hope that it will be useful,
  13. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. .\" Lesser General Public License for more details.
  16. .\"
  17. .\" You should have received a copy of the GNU Lesser General Public
  18. .\" License along with this library, in file named COPYING.LGPL; if not,
  19. .\" write to the Free Software Foundation, Inc., 59 Temple Place,
  20. .\" Suite 330, Boston, MA 02111-1307 USA
  21. .TH rblckeck 1 "Apr 2005" "User Utilities"
  22. .SH NAME
  23. rblckeck \- DNSBL lookup utility
  24. .SH SYNOPSYS
  25. .B rblcheck
  26. .RB [\| \-s
  27. .IR zone \|]
  28. .RB [\| \-S
  29. .IR zone\-file \|]
  30. .RB [\| \-c \|]
  31. .RB [\| \-tmvq \|]
  32. .RB [\| \-n
  33. .IR nsaddr \|]
  34. .IR address \|.\|.\|.
  35. .SH DESCRIPTION
  36. .B rblcheck
  37. is a simple command-line to perform DNSBL (DNS-based blocklists) lookups.
  38. For every IP address (or a name, in which case it will be resolved to an
  39. address first), the utility verifies whenever it is listed in a (list of)
  40. DNS blocklists specified with
  41. .B \-s
  42. or
  43. .B \-S
  44. options, optionally obtains text assotiated with the listing (usually it
  45. is either some description about the reason of the listing or an URL
  46. referring to such a description), and displays results on standard output.
  47. .PP
  48. The program is implemented on top of
  49. .BR udns (3)
  50. library.
  51. .SH OPTIONS
  52. The following options are recognized by
  53. .BR rblcheck :
  54. .TP
  55. .B \-s \fIzone\fR
  56. add the given \fIzone\fR DNSBL name to the list of active zones.
  57. .TP
  58. .B \-S \fIzone-file\fR
  59. add list of zones from the named \fIzone-file\fR to the list of
  60. active zones (the file specifies one zone as the first word on a
  61. line, empty lines and lines starting with `#' character are ignored).
  62. .TP
  63. .B \-c
  64. reset active zone list.
  65. .TP
  66. .B \-v
  67. be more verbose, produce more detailed output.
  68. .TP
  69. .B \-q
  70. the opposite for \fB\-v\fR -- produce less detailed output.
  71. .TP
  72. .B \-t
  73. obtain text for listed addresses.
  74. .TP
  75. .B \-n \fInsaddr\fR
  76. Use the given nameserver (given as IPv4 or IPv6 address) instead of the
  77. default. The same effect may be achieved by setting $NSCACHEIP environment
  78. variable.
  79. .TP
  80. .B \-m
  81. stop after first hit, ie after the first address which is found to be
  82. listed.
  83. .TP
  84. .B \-h
  85. print short help and exit.
  86. .PP
  87. If no
  88. .BR \-s ,
  89. .BR \-S
  90. and
  91. .B \-c
  92. options are given,
  93. .B rblcheck
  94. will try to obtain list of zones using $RBLCHECK_ZONES environment variable,
  95. or ~/.rblcheckrc, or /etc/rblckechrc files, in that order. If no zones are
  96. found, it will exit unsuccessefully.
  97. .SH "RETURN VALUE"
  98. When no addresses given are listed and no errors occured,
  99. .B rblcheck
  100. exits with code 0. If at least one address is listed,
  101. .B rblcheck
  102. returns 100. In case of DNS errors,
  103. .B rblcheck
  104. returns 2.
  105. .SH ENVIRONMENT
  106. .TP
  107. .B $RBLCHECK_ZONES
  108. if no
  109. .BR \-s ,
  110. .B \-S
  111. or
  112. .B \-c
  113. option is given,
  114. .B rblcheck
  115. tries this variable to obtain list of DNSBL zones to check against.
  116. .SH FILES
  117. .TP
  118. $HOME/.rblcheckrc and /etc/rblcheckrc
  119. if no
  120. .BR \-s ,
  121. .B \-S
  122. or
  123. .B \-c
  124. option is given, and no $RBLCHECK_ZONES environment variable is set,
  125. .B rblcheck
  126. will try the two files (the first one that exists) to obtain list of
  127. DNSBL zones to check against.
  128. Each line specifies one zone (only first word in each line is used).
  129. Empty lines and lines starting with `#' character are ignored.
  130. .SH "SEE ALSO"
  131. .BR dnsget (1)
  132. .BR resolv.conf (5)
  133. .BR udns (3).
  134. .SH AUTHOR
  135. This program and manual pages are written by Michael Tokarev.