28.6. DNS diagnostics and statistics

28.6.1. DNS diagnostics

The following commands are used to display the diagnostics of the DNS resource :

d d dns / d de dns

It informs about the state of the resource, the state of the CACHE, the RELAY and the SERVER mode, the number of records currently occupied with pending requests (for CACHE,RELAY and SERVER), the maximum number of simultaneously pending records ever reached (for CACHE, RELAY and SERVER) and the maximum number of simultaneously pending requests (for CACHE, RELAY and SERVER).

[17:49:20] ABILIS_CPX:d d dns

RES:Dns -----------------------------------------------------------------------
       Domain_Name_System                                                      
       STATE:READY     PRI-SERVER:008.008.008.008  SEC-SERVER:008.008.004.004
       ----------------|-- STATE --|--- CUR ---|-- PEAK ---|--- MAX ---|
       CACHE           |READY      |        140|        888|       5000|
       RELAY           |READY      |          0|        500|        500|
       RELAY-BLACKLIST |READY      |         33|          -|       2000|
       SERVER          |READY      |           |           |           |
       -----------------------------------------------------------------

28.6.2. DNS statistics

To display the statistics of the DNS resource the following commands are used:

d s dns / d se dns

Statistics are divided between Resolver and Relay mode and between Primary (PRI-) and Secondary (SEC-) DNS server. For Resolver mode are shown statistics such as the number of queries, resolved hostname, unknown hostname, etc... For Relay mode are shown statistics such as the number of total and succesfull clients' requests, the number of clients' requests discarded because the table was full or the source IP was not allowed, etc..

[11:42:10] ABILIS_CPX:d s dns

RES:Dns -----------------------------------------------------------------------
       Domain_Name_System                                                      
       --- Cleared 0 days 17:01:01 ago, on 28/05/2015 at 19:48:22 -------------
       - Resolver -------------------------------------------------------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       PRI-QUERIES|           |         36|SEC-QUERIES|           |         24|
       PRI-RES    |          4|           |SEC-RES    |          0|           |
       PRI-UNK    |          0|           |SEC-UNK    |          0|           |
       PRI-RTY-OVR|          0|           |SEC-RTY_OVR|          0|           |
       PRI-TOUT   |         32|           |SEC-TOUT   |         24|           |
       PRI-ERRORS |          0|           |SEC-ERRORS |          0|           |
       ------------------------------------------------------------------------
       - Relay ----------------------------------------------------------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       REQ-TOTAL  |      58557|           |PRI-REQ-RSP|       2783|       7978|
       REQ-SUCC   |      44655|           |SEC-REQ-RSP|       1065|       5187|
       REQ-BAD    |          3|           |PRI-NOMATCH|       2771|           |
       OVERFLOW   |       9752|           |SEC-NOMATCH|       2771|           |
       DROP-ACCESS|         17|           |RSP-BAD    |         13|           |
       ------------------------------------------------------------------------