Public domain
cd /usr/src
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/dnscap-20130325T2111.tar.gz"
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Patches/dnscap-20130325T2111.makefile.patch"
su - install
cd /usr/src
tar xf dnscap-20130325T2111.tar.gz
cd dnscap-20130325T2111
./configure --prefix=/usr/ && make
patch < ../dnscap-20130325T2111.makefile.patch
make install DESTDIR=/usr/local/encap/dnscap-20130325T2111
cd /usr/local/encap/dnscap-20130325T2111
mv usr/share/man/ usr/
cd /usr/local/encap/
mkencap dnscap-20130325T2111/
logout
cd /usr/local/encap/
epkg dnscap-20130325T2111
dnscap -g -i eth0
dnscap -g -x yahoo.com
dnscap -i -6 -d -g -i eth0 -a 192.168.1.111 -si 2>&1 | tee my-dns-queries.txt | grep 'IN,A '
dnscap -w - -1 | tcpdump -r - -n
dnscap -i eth0 -c 1000 -w - -1 -x imgcdn.ptvcdn.net | tcpdump -r - -n
BY: Pejman Moghadam
TAG: dnscap, epkg
DATE: 2013-05-15 10:23:18