For When You Can't Have The Real Thing
[ start | index | login ]
start > dns > Counting Denied Queriers

Counting Denied Queriers

Created by dave. Last edited by dave, 7 years and 325 days ago. Viewed 1,742 times. #1
[edit] [rdf]
labels
attachments
(2016-05-09)

Problem

Show IPs getting denied responses to queries on my local DNS server, sorted by the number of denies in the log file.

Solution

# grep denied named.log.1 | awk '{print $4}' | awk -F '#' '{print $1}' | sort | uniq -c | sort -n | less

Commentary

There's nothing here to be proud of, but it works.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt