[csw-devel] SF.net SVN: gar:[8625] csw/mgar/pkg/dnstop/trunk
bonivart at users.sourceforge.net
bonivart at users.sourceforge.net
Wed Feb 17 16:55:22 CET 2010
Revision: 8625
http://gar.svn.sourceforge.net/gar/?rev=8625&view=rev
Author: bonivart
Date: 2010-02-17 15:55:22 +0000 (Wed, 17 Feb 2010)
Log Message:
-----------
dnstop: fix man page #4279
Modified Paths:
--------------
csw/mgar/pkg/dnstop/trunk/Makefile
csw/mgar/pkg/dnstop/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/dnstop/trunk/files/dnstop.8
csw/mgar/pkg/dnstop/trunk/files/dnstop.pod
Modified: csw/mgar/pkg/dnstop/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dnstop/trunk/Makefile 2010-02-17 15:35:53 UTC (rev 8624)
+++ csw/mgar/pkg/dnstop/trunk/Makefile 2010-02-17 15:55:22 UTC (rev 8625)
@@ -9,6 +9,8 @@
MASTER_SITES = http://dns.measurement-factory.com/tools/dnstop/src/
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += dnstop.pod
+DISTFILES += dnstop.8
LICENSE = LICENSE
@@ -40,7 +42,7 @@
@ginstall -m 755 -d $(DESTDIR)$(bindir)
@ginstall -m 755 $(WORKSRC)/dnstop $(DESTDIR)$(bindir)
@ginstall -m 755 -d $(DESTDIR)$(mandir)/man8
- @ginstall -m 444 $(WORKSRC)/dnstop.8 $(DESTDIR)$(mandir)/man8
+ @ginstall -m 444 $(FILEDIR)/dnstop.8 $(DESTDIR)$(mandir)/man8
@ginstall -m 755 -d $(DESTDIR)$(docdir)/$(GARNAME)
@ginstall -m 444 $(WORKSRC)/CHANGES $(DESTDIR)$(docdir)/$(GARNAME)
@$(MAKECOOKIE)
Modified: csw/mgar/pkg/dnstop/trunk/checksums
===================================================================
--- csw/mgar/pkg/dnstop/trunk/checksums 2010-02-17 15:35:53 UTC (rev 8624)
+++ csw/mgar/pkg/dnstop/trunk/checksums 2010-02-17 15:55:22 UTC (rev 8625)
@@ -1,2 +1,3 @@
-c3b095c7ed3f2d43624d3278a697d89d Makefile.p
827a0d2020b157b925411dd30b6feff3 dnstop-20090128.tar.gz
+70ffba84342497ab9d5da57ab0b4e0d5 dnstop.8
+fdfa026782a0fdc5b24b934ef5782ebd dnstop.pod
Added: csw/mgar/pkg/dnstop/trunk/files/dnstop.8
===================================================================
--- csw/mgar/pkg/dnstop/trunk/files/dnstop.8 (rev 0)
+++ csw/mgar/pkg/dnstop/trunk/files/dnstop.8 2010-02-17 15:55:22 UTC (rev 8625)
@@ -0,0 +1,347 @@
+.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sh \" Subsection heading
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
+..
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. | will give a
+.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
+.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
+.\" expand to `' in nroff, nothing in troff, for use with C<>.
+.tr \(*W-|\(bv\*(Tr
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+'br\}
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.if \nF \{\
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. nr % 0
+. rr F
+.\}
+.\"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.hy 0
+.if n .na
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "DNSTOP 8"
+.TH DNSTOP 8 "2010-02-16" "perl v5.8.8" "User Contributed Perl Documentation"
+.SH "NAME"
+dnstop \- displays various tables of DNS traffic on your network.
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+dnstop [\-46apsQR] [\-b expression] [\-i address] [\-f filter] [\-r interval] [device] [savefile]
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+dnstop is a small tool to listen on device or to parse the file savefile and collect and print statistics on the local network's \s-1DNS\s0 traffic. You must have read access to /dev/bpf*.
+.SH "COMMAND LINE OPTIONS"
+.IX Header "COMMAND LINE OPTIONS"
+The options are as follows:
+.RE
+.IP "\fB\-4\fR"
+.IX Item "-4"
+Count only messages with IPv4 addresses.
+.RE
+.IP "\fB\-6\fR"
+.IX Item "-6"
+Count only messages with IPv6 addresses.
+.RE
+.IP "\fB\-a\fR"
+.IX Item "-a"
+Anonymize addresses.
+.RE
+.IP "\fB\-b expression\fR"
+.IX Item "-b expression"
+\&\s-1BPF\s0 filter expression (default: udp port 53).
+.RE
+.IP "\fB\-i address\fR"
+.IX Item "-i address"
+Ignore select addresses.
+.RE
+.IP "\fB\-p\fR"
+.IX Item "-p"
+Do not put the interface into promiscuous mode.
+.RE
+.IP "\fB\-r\fR"
+.IX Item "-r"
+Redraw interval (seconds).
+.RE
+.IP "\fB\-l level\fR"
+.IX Item "-l level"
+Keep counts on names up to level domain name levels.
+.PP
+For example, with \-l 2 (the default), dnstop will keep two tables: one with top-level domain names, and another with second-level domain names. Increasing the level provides more details, but also requires more memory and \s-1CPU\s0.
+.RE
+.IP "\fB\-f\fR"
+.IX Item "-f"
+Input filter name
+.PP
+The \*(L"unknown\-tlds\*(R" filter includes only queries for TLDs that are bogus. Useful for identifying hosts/servers that leak queries for things like \*(L"localhost\*(R" or \*(L"workgroup.\*(R"
+.PP
+The \*(L"A\-for\-A\*(R" filter includes only A queries for names that are already \s-1IP\s0 addresses. Certain Microsoft Windows \s-1DNS\s0 servers have a known bug that forward these queries.
+.PP
+The \*(L"rfc1918\-ptr\*(R" filter includes only \s-1PTR\s0 queries for addresses in \s-1RFC1918\s0 space. These should never leak from inside an organization.
+.RE
+.IP "\fB\-Q\fR"
+.IX Item "-Q"
+Count only \s-1DNS\s0 query messages.
+.RE
+.IP "\fB\-R\fR"
+.IX Item "-R"
+Count only \s-1DNS\s0 reply messages.
+.RE
+.IP "\fBsavefile\fR"
+.IX Item "savefile"
+A captured network trace in pcap format.
+.RE
+.IP "\fBdevice\fR"
+.IX Item "device"
+Ethernet device (ie fxp0).
+.SH "RUN TIME OPTIONS"
+.IX Header "RUN TIME OPTIONS"
+While running, the following options are available to alter the display:
+.RE
+.IP "\fBs\fR"
+.IX Item "s"
+Display the source address table.
+.RE
+.IP "\fBd\fR"
+.IX Item "d"
+Display the destination address table.
+.RE
+.IP "\fBt\fR"
+.IX Item "t"
+Display the breakdown of query types seen.
+.RE
+.IP "\fBo\fR"
+.IX Item "o"
+Display the breakdown of opcodes seen.
+.RE
+.IP "\fB1\fR"
+.IX Item "1"
+Show 1st level query names.
+.RE
+.IP "\fB2\fR"
+.IX Item "2"
+Show 2nd level query names.
+.RE
+.IP "\fB3\fR"
+.IX Item "3"
+Show 3rd level query names.
+.RE
+.IP "\fB4\fR"
+.IX Item "4"
+Show 4th level query names.
+.RE
+.IP "\fB5\fR"
+.IX Item "5"
+Show 5th level query names.
+.RE
+.IP "\fB6\fR"
+.IX Item "6"
+Show 6th level query names.
+.RE
+.IP "\fB7\fR"
+.IX Item "7"
+Show 7th level query names.
+.RE
+.IP "\fB8\fR"
+.IX Item "8"
+Show 8th level query names.
+.RE
+.IP "\fB9\fR"
+.IX Item "9"
+Show 9th level query names.
+.RE
+.IP "\fB!\fR"
+.IX Item "!"
+Show sources + 1st level query names.
+.RE
+.IP "\fB@\fR"
+.IX Item "@"
+Show sources + 2nd level query names.
+.RE
+.IP "\fB#\fR"
+.IX Item "#"
+Show sources + 3rd level query names.
+.RE
+.IP "\fB$\fR"
+.IX Item "$"
+Show sources + 4th level query names.
+.RE
+.IP "\fB%\fR"
+.IX Item "%"
+Show sources + 5th level query names.
+.RE
+.IP "\fB^\fR"
+.IX Item "^"
+Show sources + 6th level query names.
+.RE
+.IP "\fB&\fR"
+.IX Item "&"
+Show sources + 7th level query names.
+.RE
+.IP "\fB*\fR"
+.IX Item "*"
+Show sources + 8th level query names.
+.RE
+.IP "\fB(\fR"
+.IX Item "("
+Show sources + 9th level query names.
+.RE
+.IP "\fB^R\fR"
+.IX Item "^R"
+Reset the counters.
+.RE
+.IP "\fB^X\fR"
+.IX Item "^X"
+Exit the program.
+.RE
+.IP "\fBspace\fR"
+.IX Item "space"
+Redraw.
+.RE
+.IP "\fB?\fR"
+.IX Item "?"
+Help.
+.SH "NON-INTERACTIVE MODE"
+.IX Header "NON-INTERACTIVE MODE"
+If stdout is not a tty, dnstop runs in non-interactive mode. In this case, you must supply a savefile for reading, instead of capturing live packets. After reading the entire savefile, dnstop prints the top 50 entries for each table.
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+.RE
+.IP "\fBDuane Wessels (wessels at measurement\-factory.com)\fR"
+.IX Item "Duane Wessels (wessels at measurement-factory.com)"
+.RE
+.PD 0
+.IP "\fBMark Foster (mark at foster.cc)\fR"
+.IX Item "Mark Foster (mark at foster.cc)"
+.RE
+.IP "\fBJose Nazario (jose at monkey.org)\fR"
+.IX Item "Jose Nazario (jose at monkey.org)"
+.RE
+.IP "\fBSam Norris <@ChangeIP.com>\fR"
+.IX Item "Sam Norris <@ChangeIP.com>"
+.RE
+.IP "\fBMax Horn <@quendi.de>\fR"
+.IX Item "Max Horn <@quendi.de>"
+.RE
+.IP "\fBJohn Morrissey <jwm at horde.net>\fR"
+.IX Item "John Morrissey <jwm at horde.net>"
+.RE
+.IP "\fBFlorian Forster <octo at verplant.org>\fR"
+.IX Item "Florian Forster <octo at verplant.org>"
+.RE
+.IP "\fBDave Plonka <plonka at cs.wisc.edu>\fR"
+.IX Item "Dave Plonka <plonka at cs.wisc.edu>"
+.RE
+.IP "\fBhttp://dnstop.measurement\-factory.com/\fR"
+.IX Item "http://dnstop.measurement-factory.com/"
+.PD
+.SH "BUGS"
+.IX Header "BUGS"
+Does not support \s-1TCP\s0 at this time.
Added: csw/mgar/pkg/dnstop/trunk/files/dnstop.pod
===================================================================
--- csw/mgar/pkg/dnstop/trunk/files/dnstop.pod (rev 0)
+++ csw/mgar/pkg/dnstop/trunk/files/dnstop.pod 2010-02-17 15:55:22 UTC (rev 8625)
@@ -0,0 +1,211 @@
+=head1 NAME
+
+dnstop - displays various tables of DNS traffic on your network.
+
+=head1 SYNOPSIS
+
+dnstop [-46apsQR] [-b expression] [-i address] [-f filter] [-r interval] [device] [savefile]
+
+=head1 DESCRIPTION
+
+dnstop is a small tool to listen on device or to parse the file savefile and collect and print statistics on the local network's DNS traffic. You must have read access to /dev/bpf*.
+
+=head1 COMMAND LINE OPTIONS
+
+The options are as follows:
+
+=item B<-4>
+
+Count only messages with IPv4 addresses.
+
+=item B<-6>
+
+Count only messages with IPv6 addresses.
+
+=item B<-a>
+
+Anonymize addresses.
+
+=item B<-b expression>
+
+BPF filter expression (default: udp port 53).
+
+=item B<-i address>
+
+Ignore select addresses.
+
+=item B<-p>
+
+Do not put the interface into promiscuous mode.
+
+=item B<-r>
+
+Redraw interval (seconds).
+
+=item B<-l level>
+
+Keep counts on names up to level domain name levels.
+
+For example, with -l 2 (the default), dnstop will keep two tables: one with top-level domain names, and another with second-level domain names. Increasing the level provides more details, but also requires more memory and CPU.
+
+=item B<-f>
+
+Input filter name
+
+The "unknown-tlds" filter includes only queries for TLDs that are bogus. Useful for identifying hosts/servers that leak queries for things like "localhost" or "workgroup."
+
+The "A-for-A" filter includes only A queries for names that are already IP addresses. Certain Microsoft Windows DNS servers have a known bug that forward these queries.
+
+The "rfc1918-ptr" filter includes only PTR queries for addresses in RFC1918 space. These should never leak from inside an organization.
+
+=item B<-Q>
+
+Count only DNS query messages.
+
+=item B<-R>
+
+Count only DNS reply messages.
+
+=item B<savefile>
+
+A captured network trace in pcap format.
+
+=item B<device>
+
+Ethernet device (ie fxp0).
+
+=head1 RUN TIME OPTIONS
+
+While running, the following options are available to alter the display:
+
+=item B<s>
+
+Display the source address table.
+
+=item B<d>
+
+Display the destination address table.
+
+=item B<t>
+
+Display the breakdown of query types seen.
+
+=item B<o>
+
+Display the breakdown of opcodes seen.
+
+=item B<1>
+
+Show 1st level query names.
+
+=item B<2>
+
+Show 2nd level query names.
+
+=item B<3>
+
+Show 3rd level query names.
+
+=item B<4>
+
+Show 4th level query names.
+
+=item B<5>
+
+Show 5th level query names.
+
+=item B<6>
+
+Show 6th level query names.
+
+=item B<7>
+
+Show 7th level query names.
+
+=item B<8>
+
+Show 8th level query names.
+
+=item B<9>
+
+Show 9th level query names.
+
+=item B<!>
+
+Show sources + 1st level query names.
+
+=item B<@>
+
+Show sources + 2nd level query names.
+
+=item B<#>
+
+Show sources + 3rd level query names.
+
+=item B<$>
+
+Show sources + 4th level query names.
+
+=item B<%>
+
+Show sources + 5th level query names.
+
+=item B<^>
+
+Show sources + 6th level query names.
+
+=item B<&>
+
+Show sources + 7th level query names.
+
+=item B<*>
+
+Show sources + 8th level query names.
+
+=item B<(>
+
+Show sources + 9th level query names.
+
+=item B<^R>
+
+Reset the counters.
+
+=item B<^X>
+
+Exit the program.
+
+=item B<space>
+
+Redraw.
+
+=item B<?>
+
+Help.
+
+=head1 NON-INTERACTIVE MODE
+
+If stdout is not a tty, dnstop runs in non-interactive mode. In this case, you must supply a savefile for reading, instead of capturing live packets. After reading the entire savefile, dnstop prints the top 50 entries for each table.
+
+=head1 AUTHORS
+
+=item B<Duane Wessels (wessels at measurement-factory.com)>
+
+=item B<Mark Foster (mark at foster.cc)>
+
+=item B<Jose Nazario (jose at monkey.org)>
+
+=item B<Sam Norris E<lt>@ChangeIP.comE<gt>>
+
+=item B<Max Horn E<lt>@quendi.deE<gt>>
+
+=item B<John Morrissey E<lt>jwm at horde.netE<gt>>
+
+=item B<Florian Forster E<lt>octo at verplant.orgE<gt>>
+
+=item B<Dave Plonka E<lt>plonka at cs.wisc.eduE<gt>>
+
+=item B<http://dnstop.measurement-factory.com/>
+
+=head1 BUGS
+
+Does not support TCP at this time.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list