LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-29-2007, 05:35 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Bind DNS - Find machine requesting lots of failing lookups


I am seeing lots of the failed lookups in fast succession in my logs and want a way of finding out which client ip is requesting those records from my Bind DNS servers. Any ideas how I can do this?
 
Old 11-29-2007, 07:50 AM   #2
tgreaser
LQ Newbie
 
Registered: Feb 2007
Location: Morgantown, WV
Distribution: RedHat, Fedora
Posts: 24

Rep: Reputation: 16
Post turn up logging

in the top of your named.conf

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

##### add logging statements here ######

logging {
category lame-servers { null; };

channel default_syslog {
syslog local2;
severity info;
print-category yes;
print-severity yes;
};
category queries { default_syslog; };
};


edit your syslog if you only want named logs to go to a specific file
ie.. /var/log/named.log ( thats what i do)

*.info;mail.none;authpriv.none;cron.none;local2.none /var/log/messages


send local2 to named.log
local2.* /var/log/named.log

touch /var/log/named.log
restart syslog
restart named


it will show you logs like this.

named[2621]: queries: info: client 10.3.70.34#1025: query: bix.yimg.com IN A
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND DNS - MX, TXT and SPF records when hosting multiple domains on same machine? icebrian Linux - Networking 3 05-02-2011 08:21 AM
[SOLVED] Spotty DNS lookups (RHEL4 machine) Vanyel Linux - Networking 5 12-05-2007 07:21 AM
BIND FORMERR on certain lookups. 3point2 Linux - Networking 0 06-13-2007 09:22 PM
newbie requesting help with a dual boot machine scottydel Linux - General 1 01-28-2007 01:42 PM
DNS lookups just started failing DualQuad Linux - Networking 1 04-10-2006 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration