Permalink
..
Failed to load latest commit information.
AUTHORS added contribs Aug 31, 2015
ChangeLog
How-it-works.txt Defined what we mean by handling vlan in current version Dec 22, 2012
INSTALL
ISSUES
LICENSE
README Added notes about perl-DateTime for RedHat systems Jan 1, 2013
README.upgrading Added missing License file and changelog. Added note for upgrading to… Dec 28, 2012
ROADMAP Added some metrix for DNS count to the roadmap Mar 12, 2012
TODO Updated doc to be more correct Mar 10, 2012

README

#
#  ______                                           ____   __  __  _____
# |  __  |                         @               |    \ |  \ | ||  ___| (TM)
# | _____|.------. .-----. .-----. _ -. .-.------. | |\  ||   \| ||___  |
# |  |    |  __  ||__  --'|__  --'| |\ Y /| _--__|_| |/  ||      || \_| |
# |__|    |____|_||______||______||_| \_/ |_______/|____/ |__|\__||_____|
#
#

# Usage
########

# passivedns
root@localhost: ./passivedns -i eth1 -l /var/log/passivedns.log

# pdns2db.pl
root@localhost: apt-get install libdatetime-perl
(Redhat/CentOS: yum install perl-DateTime)

First you need to add a user to the mysql db:

mysql> GRANT USAGE ON *.* TO 'pdns'@'localhost' IDENTIFIED BY 'pdns';
mysql> GRANT SELECT,CREATE,INSERT,UPDATE ON pdns.* TO 'pdns'@'localhost';
mysql> flush privileges;
mysql> CREATE DATABASE pdns;

Then you need to start up pdns2db.pl

root@localhost: perl pdns2db.pl --file /var/log/passivedns.log

# Old School archiving of passivedns.log
# While passivedns is running;
$ mkdir /var/log/passivedns-archive/
$ mv /var/log/passivedns.log /var/log/passivedns-archive/
$ gzip -S ".`date +%s`.gz" /var/log/passivedns-archive/passivedns.log 
# Searching
$ zgrep "gamelinux.org" /var/log/passivedns-archive/*