
jeffersno1
Novice
Jan 4, 2008, 1:40 AM
Post #5 of 6
(584 views)
|
|
Re: [KevinR] average dns query per second
[In reply to]
|
Can't Post
|
|
thanks for your reply, if your referring to the CPANEL, i have root access to the box but remotley, the only way i can get on is via the CLI. this is what i have at the moment, the log file looks like this: 03-Jan-2008 08:50:36.044 queries: info: client **.***.**.***#port#: query: www.intel.com IN MX + 03-Jan-2008 08:50:36.045 queries: info: client **.**.**.***#port#: query: imap.mail.yahoo.com IN AAAA + 03-Jan-2008 08:50:36.045 queries: info: client **.**.***.**#port#: query: i23.ebayimg.com IN A + 03-Jan-2008 08:50:36.046 queries: info: client **.**.**.*#port#: query: view.web.com IN A + 03-Jan-2008 08:50:36.050 queries: info: client **.**.**.***#port#: query: spe.google.com IN A + The script ive started to write is as follow: #!/usr/bin/perl -w use POSIX; open (file_handle,"/dns/log/test.log"); foreach (<file_handle>){ chomp($_); @line=split(" ",$_); @time=split(":",$line[1]);
So from the above im getting splitting the line up so i only get the time the request was made, now all i need to do is put it into how many per minute and how many per secondThanks againJeffers
|