How can I create logs of every DNS query that my computer makes along with the responses it gets?
|
The easiest way is to install Bind locally. Most distros default install of Bind will be non-autoritative caching-only. Simply add a |
|||||||||
|
|
dnsmasq is far easier to configure as a DNS aggregator/caching daemon than BIND, and for that purpose, the performance might just be better. If you turn logging up to "debug", all the questions and answers show up in whatever Dnsmasq also makes it easy to get rid of abusive advertisers and dirtbag privacy invading "analytic" creeps by aliasing entire domains to 127.0.0.1 |
|||
|
|
|
If I recall correctly Snort can selectively monitor traffic based on user defined rules. However, Snort will not create logs for DNS requests when your computer, i.e. its resolver, can answer the question from its cache. |
|||
|
|
