Sponsored Content
Full Discussion: Dig total query time?
Top Forums UNIX for Dummies Questions & Answers Dig total query time? Post 302848609 by r7a7v7 on Thursday 29th of August 2013 03:44:48 PM
Old 08-29-2013
Dig total query time?

I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you. Here is the command I'm running btw:
Code:
dig -f names.txt +noall +stats


Last edited by fpmurphy; 08-29-2013 at 07:52 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

query for a file created at a particular time

Hi guys I need to find out a file created at 'x' time and the name of the file is rag.rxt 100's of these files are created every minute and i dont know how to find the file created at a particular time. pls help me with the command to search that. thanks in advance (2 Replies)
Discussion started by: ragha81
2 Replies

2. UNIX for Dummies Questions & Answers

Query :: Using Netstat finding total value to a db connection

I wrote a very simple script to calculate the DB connection from an appserver and check the total netstat connection to a particular DB exceed 25 then it will send mail netstat -a 2> /dev/null | awk '/.*ESTAB/{print $5}' | cut -d. -f1 | uniq -c | awk '{if ($1 > 25)print $2," exceed ",$1;}' ... (1 Reply)
Discussion started by: senthil.ak
1 Replies

3. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

4. Shell Programming and Scripting

How to get total time using awk

Hi guys, I can't find a solution to sum the h:m:s: columns. 28/05/2010 03h 29min 34seg ADSL TELEMAR 28/05/2010 12h 19min 21seg ADSL TELEMAR 29/05/2010 04h 20min 02seg ADSL TELEMAR 29/05/2010 04h 31min 45seg ADSL TELEMAR 30/05/2010 06h 10min 43seg ADSL TELEMAR Thanks Use code... (8 Replies)
Discussion started by: ashimada
8 Replies

5. UNIX for Dummies Questions & Answers

dig query time

Hi Guys, I just need a confirmation if what think i know is right . dig yahoo.com ; <<>> DiG 9.7.0-P1 <<>> yahoo.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27410 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 ... (1 Reply)
Discussion started by: mtomar
1 Replies

6. Shell Programming and Scripting

Total Time

Hello, I have one script which takes some time to complete. I Need the total exact time taken by this script. How can i modify this script. Regards, Sam. (21 Replies)
Discussion started by: j_panky
21 Replies

7. Shell Programming and Scripting

Total time taken

Hi Friend, Need your help. I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command . Example of Log file : Start Loading ---Thu Aug 2 17:14:09 EDT 2012 Load... (5 Replies)
Discussion started by: deep_kol
5 Replies

8. AIX

Time of query execution much different between 3 servers

Hello, I have 3 AIX 6.1 machines running INFORMIX 11.7 database engine. One of these servers is the database server and the other 2 servers are connecting to it. I am doing a test to determine the time of query execution between these servers and i see that in specific times one of these... (12 Replies)
Discussion started by: omonoiatis9
12 Replies

9. UNIX for Beginners Questions & Answers

Total size utilizes by the files older than a time span

Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
named.stats(4)						     Kernel Interfaces Manual						    named.stats(4)

NAME
named.stats - Contains BIND server statistics DESCRIPTION
The named.stats file contains server statistics for queries to and from hosts in a BIND environment. You can use this data to determine the load on a DNS server and diagnose problems. See the named(8) reference page for information about how to specify the name and location of the named.stats file; the default is /var/tmp/named.stats. The query fields for global and per-node statistics, as specified in the LEGEND section of the named.stats file, are defined as follows: Received a response from a node Received a negative response from a node Received a response from a node that this node had to forward Received an extra answer from a node Received a server failed message (SERVFAIL) from a node Received a format error message (FORMERR) from a node Received some other error from a node Received an zone transfer request mes- sage (AXFR) from a node Received a lame delegation from a node Received some IP options from a node Sent a node a system query Sent a node an answer Forwarded a query to a node Sent a node a retry Sent to a node, but the send failed (in sendto) Received a query from a node Received an inverse query from a node Received a query from a node that this node had to forward Received a retry from a node Received a query using TCP from a node Forwarded a response to a node Sent a node a server failed message (SERVFAIL) Sent a node a format error message (FORMERR) Sent a non-authoritative answer to a node Sent a negative response to a node EXAMPLES
The following example is an excerpt of a named.stats file: +++ Statistics Dump +++ (917839766) Sun Jan 31 22:29:26 1999 370508 time since boot (secs) 370508 time since reset (secs) 130 Unknown query types 711033 A queries 35 NS queries 37 CNAME queries 40 SOA queries 2 MB queries 198963 PTR queries 26088 MX queries 1 TXT queries 20 AAAA queries 60910 ANY queries ++ Name Server Statistics ++ (Legend) RR RNXD RFwdR RDupR RFail RFErr RErr RAXFR RLame ROpts SSysQ SAns SFwdQ SDupQ SErr RQ RIQ RFwdQ RDupQ RTCP SFwdR SFail SFErr SNaAns SNXD (Global) 537 231 479 0 2 10 0 0 5 0 54 56382 479 8 2 38849 3 0 0 6 479 2 5 19057 1285 [0.0.0.0] 0 0 2 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 23 1 0 0 0 [4.0.38.18] 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 [4.0.147.94] 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 . . . The values in each entry below the (Global) delimeter are separated into five groups, each with five numbers. These groups of numbers cor- relate to the fields in the Legend section of the file, which are separated into similar groups. From the left of an entry, the first field is RR, the next is RNXD, and so on. In the next group of five on the same line, the first field is RFErr, the next is RErr, and so on. In the Global entry, you can see that, in total, there were 537 queries received, 231 negatives responses received, 479 queries that were forwarded to other BIND servers, and so on. Subsequent entries can be interpreted in a similar manner. The Global values in this example are indicative of several problems: RFail = 2 The server received 2 failure messages from a node or nodes. There might be a problem with the nodes that attempted to query the server. Find the IP addresses of the nodes and contact the administrators. RFErr = 10 The server received 10 improperly formatted queries from a node or nodes. If this happens consistently, a hacker might be trying to break into the server. You should run a monitoring tool to collect more data. RLame = 5 The server received 5 lame delegations. This problem occurs if nodes query the server for information regarding a zone for which it has no authority. It is usually a temporary condition, but if the problem persists, contact the nodes' administrators and ask them to check their configurations. RDupR = 8 A node or nodes sent multiple copies of the same query to the server. These errors are usually benign, but nodes should give up after 3 attempts. If the number of duplicates is fairly high, there might be a problem with the nodes or the network. SErr = 2 The server attempted to send 2 queries to a forwarder or forwarders by using the sendto system call, and the attempts failed. Check your configuration and make sure that all of the forwarders you listed are reachable. RIQ = 3 The server received 3 inverse queries. These queries are usually benign, but if the value is fairly high, a hacker might be trying to break into the server. You should run a monitoring tool to collect more data. SFail = 2 The server sent 2 failure messages to a node or nodes. These failures are usually benign, but might not be under certain condi- tions. If the server sends many SFail errors to one node, there might be a problem with that node. If the node is another name- server, it might be lame nameserver. If the node is a host, it is sending abnormal queries. You should find the offending node and resolve the problem. SFerr = 5 The server informed a node or nodes that their requests were improperly formatted. The value of this field usually correlates to the RFErr field. You should find the offending node and resolve the problem. FILES
The syslogd daemon offers a partial listing of the named.stats data in the daemon.log file. RELATED INFORMATION
Commands: named(8), syslogd(8) delim off named.stats(4)
All times are GMT -4. The time now is 08:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy