.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "BIND8_NAMED2DLF.IN 1" .TH BIND8_NAMED2DLF.IN 1 2025-09-28 "Lire 2.1.1" "LogReport's Lire Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME bind8_named2dlf \- convert BIND8 named logs into dlf format .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBbind8_named2dlf\fR .SH DESCRIPTION .IX Header "DESCRIPTION" This script converts each line in a BIND8 named log to a dnszone dlf record. It is tested using Bind 8.2 logs. We\*(Aqre not aware of any changes in the logging format in any Bind 8.* version, we expect any bind 8.* log to get processed fine by this script. .PP The following lines are recognized: .IP \(bu 4 approved/denied AXFR requests .IP \(bu 4 completed zone transfers .IP \(bu 4 loaded master and slave zones .IP \(bu 4 denied dynamic DNS updates .SH "DLF format" .IX Header "DLF format" The DLF format of the dnszone superservice is .IP server 4 .IX Item "server" Name of the DNS server .IP time 4 .IX Item "time" Timestamp for the request .IP axfr_host 4 .IX Item "axfr_host" IP address of the host requesting the AXFR .IP axfr_zone 4 .IX Item "axfr_zone" Name of the zone being requested .IP axfr_what 4 .IX Item "axfr_what" approved, denied or axfr .IP loaded_zone 4 .IX Item "loaded_zone" Name of the zone just loaded .IP loaded_serial 4 .IX Item "loaded_serial" Serial of the zone just loaded .IP loaded_role 4 .IX Item "loaded_role" master or slave .IP updatedenied_host 4 .IX Item "updatedenied_host" IP address of the host requesting the update .IP updatedenied_zone 4 .IX Item "updatedenied_zone" Name of the zone being updated .PP Due to the nature of the different meanings of the lines in the logfile (not every line has both a AXFR\-request, loaded a zone and gotten an update request), one or more fields can be replaced by a 0 or a \-. These fields are automaticly filtered out for the different kind of reports. .PP Example of DLF lines are: .IP "AXFR approved" 4 .IX Item "AXFR approved" tim 1026644876 10.10.10.1 algron.com approved \- 0 \- \- \- .IP "update denied" 4 .IX Item "update denied" tim 1026645567 \- \- \- \- 0 \- 10.in\-addr.arpa 10.199.16.218 .IP "master zone loaded" 4 .IX Item "master zone loaded" tim 1026525210 \- \- \- nigelbowen.com.au 2002071301 master \- \- .SH EXAMPLES .IX Header "EXAMPLES" To process a log as produced by bind8: .PP .Vb 1 \& $ bind8_named2dlf < named\-log .Ve .PP bind8_named2dlf will be rarely used on its own, but is more likely called by lr_log2report: .PP .Vb 1 \& $ lr_log2report bind8_named < /var/log/named .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBbind8\-query2dlf\fR\|(1) \fBbind9\-query2dlf\fR\|(1) .SH VERSION .IX Header "VERSION" \&\f(CW$Id:\fR bind8_named2dlf.in,v 1.7 2004/10/13 10:17:27 vanbaal Exp $ .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2002 Edwin Groothuis .PP Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: .PP 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. .PP 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. .PP 3. The name of the copyright holder may not be used to endorse or promote products derived from this software without specific prior written permission. .PP THIS SOFTWARE IS PROVIDED BY THE AUTHOR \`\`AS IS\*(Aq\*(Aq AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .SH AUTHOR .IX Header "AUTHOR" Edwin Groothuis