Preskočiť na hlavný obsah

Príspevky

Zobrazujú sa príspevky z dátumu jún, 2012

Util to decode multilogs

tail -f /var/.../current | tai64nlocal but if you want to see e.g. in tinydns IP addresses, use next script... #!/usr/bin/perl -w #A program to decode tinydns logfiles #Written by Sean Hunter #Copyright (c) 2001 Uncarved Systems Ltd # #This is free software released under version 2 #of the GPL without warrantees of any kind use strict ; use IPC::Open2; #Requires djb's tai64nlocal to be in the path open2(*READTAI, *WRITETAI, ' tai64nlocal ' ); my %query_type = ( ' 0001 ' => ' A ' , ' 0002 ' => ' NS ' , ' 0005 ' => ' CNAME ' , ' 0006 ' => ' SOA ' , ' 000c ' => ' PTR ' , ' 000f ' => ' MX ' , ' 0010 ' => ' TXT ' , ' 001c ' => ' AAAA ' , ' 0021 ' => ' RT ' , ' 0026 ' => ' A6 ' , ...