djbdns
[Top] [All Lists]

Re: Log processing scripts for tinydns / axfrdns

To: dns@list.cr.yp.to
Subject: Re: Log processing scripts for tinydns / axfrdns
From: "George Georgalis" <george@galis.org>
Date: Wed, 8 Nov 2006 23:21:40 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
In-reply-to: <20061109020538.23198.qmail@plover.com>
Mail-followup-to: dns@list.cr.yp.to
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
References: <20061109014133.GV1658@run.galis.org> <20061109020538.23198.qmail@plover.com>
On Wed, Nov 08, 2006 at 09:05:38PM -0500, Mark Dominus wrote:
>
>"George Georgalis" <george@galis.org>:
>> On Wed, Nov 08, 2006 at 07:59:08PM -0500, Mark Dominus wrote:
>> >Both scripts accept a "-n" option to suppress address-to-name translation.
>> 
>> maybe an option -nn to change hex to ip address?
>
>How would that be different from the -n that the program already has?
>

okay call me an idiot---I didn't try it yet and thought I would get
hex with -n.

I did find a problem though... here is my tinydns/log/run script

#!/bin/sh
exec chpst -u log svlogd -tt ./main

the -tt option to svlogd generates human readable dates
in the first place. I imagine you are unfamiliar with
http://smarden.org/runit/ a daemontools replacement?

Below is some tinydns.pl output and the original log data.

???? s2-f1-gb.prominic.com 42972 39861 a c.ns.galis.org
???? s2-f1-gb.prominic.com 42972 29242 a b.ns.galis.org
???? s2-f1-gb.prominic.com 42972 47389 a c.ns.galis.org
???? ns1.dntn.tx.charter.com 1027 46591 aaaa galis.org
???? nsc1.ar.ed.shawcable.net 23624 50863 a ohm.iuxta.com
???? nf-out-f133.google.com 48342 33353 a a.ns.galis.org
???? nf-out-f133.google.com 48342 28687 a c.ns.galis.org
???? nf-out-f133.google.com 48342 27405 a b.ns.galis.org

2006-11-09_03:57:43.74933 3ffee301:a7dc:9bb5 + 0001 c.ns.galis.org
2006-11-09_03:57:45.77364 3ffee301:a7dc:723a + 0001 b.ns.galis.org
2006-11-09_03:57:45.77376 3ffee301:a7dc:b91d + 0001 c.ns.galis.org
2006-11-09_03:59:29.27863 42a9dd0a:0403:b5ff + 001c galis.org
2006-11-09_04:00:55.34444 403bb80d:5c48:c6af + 0001 ohm.iuxta.com
2006-11-09_04:02:21.13750 40e9b685:bcd6:8249 + 0001 a.ns.galis.org
2006-11-09_04:02:21.13761 40e9b685:bcd6:700f + 0001 c.ns.galis.org
2006-11-09_04:02:21.13771 40e9b685:bcd6:6b0d + 0001 b.ns.galis.org

...maybe if the timestamp doesn't begin with @, just leave as is?

// George

-- 
George Georgalis, systems architect, administrator <IXOYE><

<Prev in Thread] Current Thread [Next in Thread>