From: Elan Ruusamäe Date: Mon, 5 May 2008 19:34:03 +0000 (+0000) Subject: - 11-OCT-2006 update X-Git-Tag: auto/th/djbdns-1_05-24~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdjbdns.git;a=commitdiff_plain;h=5ad90ddb51dc10bc5cb76f2b80c45af9033a6567 - 11-OCT-2006 update Changed files: tinydns-log -> 1.2 --- diff --git a/tinydns-log b/tinydns-log index 6dd24f7..5df9fdc 100644 --- a/tinydns-log +++ b/tinydns-log @@ -8,6 +8,10 @@ # to add tinydns response flag "C" and more DNS RR type codes # modified 26-AUG-2002 by Andrew Pam # to support axfrdns logs as well as tinydns logs +# modified 11-OCT-2006 by Andrew Pam +# to enable autoflush and support new "X" NXDOMAIN responses + +$| = 1; # enable autoflush # convert addresses in hex to dotted decimal notation. s/\b([a-f0-9]{8})\b/join(".", unpack("C*", pack("H8", $1)))/eg; @@ -17,7 +21,7 @@ s/\b([a-f0-9]{8})\b/join(".", unpack("C*", pack("H8", $1)))/eg; # query tai64n host:port:qid flag qtype thing # keep tai64n header as is - use tai64nlocal to convert it to TAI -s/^(@[a-f0-9]+) \b([\d.]+):(\w+):(\w+) ([\+\-CI\/]?)\s?\b([a-f0-9]+) \b([-.\w]+)/$1." ".printQueryLine($2,$3,$4,$5,$6,$7)/e; +s/^(@[a-f0-9]+) \b([\d.]+):(\w+):(\w+) ([\+\-CIX\/]?)\s?\b([a-f0-9]+) \b([-.\w]+)/$1." ".printQueryLine($2,$3,$4,$5,$6,$7)/e; ### subs