lilydjwg / dnssnoop

show which process did what DNS queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What

This program tries to trace which process sends out what DNS queries.

Note that this is NOT accurate. Race conditions can happen and lead to wrong data.

Dependencies

Usage

Setup iptables:

sudo iptables -I OUTPUT -d 127.0.0.1 -p udp --dport 53 -j NFQUEUE --queue-num 2 --queue-bypass

Run it (Ctrl-C to stop):

sudo ./dnssnoop

Output fields:

TIME PID COMMAND_LINE DNS_QUESTION

About

show which process did what DNS queries

License:Apache License 2.0


Languages

Language:Python 100.0%