<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DNS monitoring in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559585#M534201</link>
    <description>Dear,&lt;BR /&gt;&lt;BR /&gt;I run  BINDv920 B.11.11.01.014 on a HP-UX 11iv1. &lt;BR /&gt;&lt;BR /&gt;Sometimes i have this messages in logs : &lt;BR /&gt;Jan 04 13:37:41.301 client: warning: client x.x.x.x#35699: no more recursive clients: quota reached&lt;BR /&gt;&lt;BR /&gt;That's why i increase the value of recursive-clients in bind configuration. No problems here.&lt;BR /&gt;&lt;BR /&gt;Now, I want to monitor the number of recursive clients (ideally in snmp) in real time.&lt;BR /&gt;The problem is that the command "rndc stats" does not give much information :&lt;BR /&gt;&lt;BR /&gt;+++ Statistics Dump +++ (1020033800)&lt;BR /&gt;success 13&lt;BR /&gt;referral 0&lt;BR /&gt;nxrrset 0&lt;BR /&gt;nxdomain 10&lt;BR /&gt;recursion 22&lt;BR /&gt;failure 5&lt;BR /&gt;--- Statistics Dump --- (1020033800)&lt;BR /&gt;&lt;BR /&gt;similarly for rndc status :&lt;BR /&gt;hpux1st-&amp;gt;rndc status&lt;BR /&gt;number of zones: XX&lt;BR /&gt;debug level: 0&lt;BR /&gt;xfers running: 0&lt;BR /&gt;xfers deferred: 0&lt;BR /&gt;soa queries in progress: 0&lt;BR /&gt;query logging is ON&lt;BR /&gt;server is up and running&lt;BR /&gt;&lt;BR /&gt;Are there other ways to monitor the number of recursive clients? (without update of Bind of course...)&lt;BR /&gt;&lt;BR /&gt;I already find some scripts like this : &lt;A href="http://forums.cacti.net/about302-15.html" target="_blank"&gt;http://forums.cacti.net/about302-15.html&lt;/A&gt;&lt;BR /&gt;I always need to calculate a delta. But it's quite dirty.&lt;BR /&gt;&lt;BR /&gt;Any helps is appreciated</description>
    <pubDate>Wed, 06 Jan 2010 16:33:48 GMT</pubDate>
    <dc:creator>2xyo</dc:creator>
    <dc:date>2010-01-06T16:33:48Z</dc:date>
    <item>
      <title>DNS monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559585#M534201</link>
      <description>Dear,&lt;BR /&gt;&lt;BR /&gt;I run  BINDv920 B.11.11.01.014 on a HP-UX 11iv1. &lt;BR /&gt;&lt;BR /&gt;Sometimes i have this messages in logs : &lt;BR /&gt;Jan 04 13:37:41.301 client: warning: client x.x.x.x#35699: no more recursive clients: quota reached&lt;BR /&gt;&lt;BR /&gt;That's why i increase the value of recursive-clients in bind configuration. No problems here.&lt;BR /&gt;&lt;BR /&gt;Now, I want to monitor the number of recursive clients (ideally in snmp) in real time.&lt;BR /&gt;The problem is that the command "rndc stats" does not give much information :&lt;BR /&gt;&lt;BR /&gt;+++ Statistics Dump +++ (1020033800)&lt;BR /&gt;success 13&lt;BR /&gt;referral 0&lt;BR /&gt;nxrrset 0&lt;BR /&gt;nxdomain 10&lt;BR /&gt;recursion 22&lt;BR /&gt;failure 5&lt;BR /&gt;--- Statistics Dump --- (1020033800)&lt;BR /&gt;&lt;BR /&gt;similarly for rndc status :&lt;BR /&gt;hpux1st-&amp;gt;rndc status&lt;BR /&gt;number of zones: XX&lt;BR /&gt;debug level: 0&lt;BR /&gt;xfers running: 0&lt;BR /&gt;xfers deferred: 0&lt;BR /&gt;soa queries in progress: 0&lt;BR /&gt;query logging is ON&lt;BR /&gt;server is up and running&lt;BR /&gt;&lt;BR /&gt;Are there other ways to monitor the number of recursive clients? (without update of Bind of course...)&lt;BR /&gt;&lt;BR /&gt;I already find some scripts like this : &lt;A href="http://forums.cacti.net/about302-15.html" target="_blank"&gt;http://forums.cacti.net/about302-15.html&lt;/A&gt;&lt;BR /&gt;I always need to calculate a delta. But it's quite dirty.&lt;BR /&gt;&lt;BR /&gt;Any helps is appreciated</description>
      <pubDate>Wed, 06 Jan 2010 16:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559585#M534201</guid>
      <dc:creator>2xyo</dc:creator>
      <dc:date>2010-01-06T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: DNS monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559586#M534202</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The message means that the name server has&lt;BR /&gt;reached its maximum number of simultaneous&lt;BR /&gt;recursive query requests. Any other recursive&lt;BR /&gt;queries will have to wait to be processed.&lt;BR /&gt;&lt;BR /&gt;You should only ignore the message if you&lt;BR /&gt;do not care about performance or the service&lt;BR /&gt;levels you are providing to your clients.&lt;BR /&gt;&lt;BR /&gt;If the DNS performance is of importance,&lt;BR /&gt;the choices are:&lt;BR /&gt;&lt;BR /&gt;1. Increase the quota. For example,&lt;BR /&gt;in named.conf (default is 1000):&lt;BR /&gt;&lt;BR /&gt;options {&lt;BR /&gt;    recursive-clients 2000;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;2. Find a way to reduce the load on your&lt;BR /&gt;DNS services. For example,&lt;BR /&gt;&lt;BR /&gt; spread the query load across more servers,&lt;BR /&gt; limit recursive queries to some subnets,&lt;BR /&gt; eliminate searchlists,&lt;BR /&gt; and similar.&lt;BR /&gt;&lt;BR /&gt;3. You can also apply a limit to the number&lt;BR /&gt;of concurrent TCP connections your name&lt;BR /&gt;server will process (for zone transfers and&lt;BR /&gt;TCP-based queries) with the "tcp-clients"&lt;BR /&gt;statement in named.conf. TCP connections&lt;BR /&gt;consume considerably more resources than UDP&lt;BR /&gt;because the host needs to track the state of&lt;BR /&gt;the TCP connection. The default limit is 100.&lt;BR /&gt;&lt;BR /&gt;But before you do anything, you need to find out who is generating this excess traffic.&lt;BR /&gt;&lt;BR /&gt;You should turn on query logging. That would&lt;BR /&gt;log each query that is being made and show&lt;BR /&gt;you who is generating the high load.&lt;BR /&gt;&lt;BR /&gt;If you are looking for a monitoring tool, there are two interesting tools that can hook into DNS logs:&lt;BR /&gt;&lt;BR /&gt;Afterglow:&lt;BR /&gt;&lt;A href="http://afterglow.sourceforge.net/" target="_blank"&gt;http://afterglow.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;DNStop:&lt;BR /&gt;&lt;A href="http://dns.measurement-factory.com/tools/dnstop/" target="_blank"&gt;http://dns.measurement-factory.com/tools/dnstop/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are others too.&lt;BR /&gt;&lt;BR /&gt;Finally, there is nothing wrong with using&lt;BR /&gt;tcpdump or other packet sniffer, getting a&lt;BR /&gt;trac of the packets to see how many are&lt;BR /&gt;incoming, from where, and for what are they&lt;BR /&gt;querying.&lt;BR /&gt;&lt;BR /&gt;By the way, Is this an Internet- or&lt;BR /&gt;Intranet-facing DNS server?&lt;BR /&gt;&lt;BR /&gt;If it is Internet-facing server,&lt;BR /&gt;I strongly suggest to disable recursive&lt;BR /&gt;queries to all but your own subnets.&lt;BR /&gt;&lt;BR /&gt;You might be experiencing denial-of-service&lt;BR /&gt;attack. This is one of the possible reasons&lt;BR /&gt;for "no more recursive clients: quota&lt;BR /&gt;reached" errors.&lt;BR /&gt;&lt;BR /&gt;b) Another possibility is that some of the&lt;BR /&gt;servers cannot reach internet (maybe another DNS server or mail server) and they are&lt;BR /&gt;asking for names that cannot be resolved when the Internet link is down. Partial&lt;BR /&gt;and unqualified names cause real problems&lt;BR /&gt;when used with search list and loss of&lt;BR /&gt;external connectivity.&lt;BR /&gt;&lt;BR /&gt;Your "rndc status" seems incomplete.&lt;BR /&gt;I expect to see more lines in the report, like:&lt;BR /&gt;&lt;BR /&gt;recursive clients: 50/35/1000&lt;BR /&gt;tcp clients: 48/100&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 07 Jan 2010 09:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559586#M534202</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-01-07T09:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: DNS monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559587#M534203</link>
      <description>Forgot to add...&lt;BR /&gt;&lt;BR /&gt;Another global option in named.conf:&lt;BR /&gt;&lt;BR /&gt;recursing-file "bind.recurse";&lt;BR /&gt;&lt;BR /&gt;This statement defines the file name to which&lt;BR /&gt;data will be written when the command&lt;BR /&gt;"rndc recursing" is issued. May be an absolute&lt;BR /&gt;or relative (to directory) path.&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 07 Jan 2010 09:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559587#M534203</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-01-07T09:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: DNS monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559588#M534204</link>
      <description>&amp;gt; Hello,&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;To begin, thank you for your reply&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 1. Increase the quota. For example,&lt;BR /&gt;&amp;gt; in named.conf (default is 1000):&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; options {&lt;BR /&gt;&amp;gt; recursive-clients 2000;&lt;BR /&gt;&amp;gt; };&lt;BR /&gt;As I indicated in my first post, I have already done that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. Find a way to reduce the load on your&lt;BR /&gt;&amp;gt; DNS services. For example,&lt;BR /&gt;I just have many users :-)&lt;BR /&gt;I already use filters.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 3. You can also apply a limit to the number&lt;BR /&gt;&amp;gt; of concurrent TCP connections your name&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;Je n'ai pas pensÃ© Ã&amp;nbsp; cette situation. Comment monitorer le nombre de session tcp avec un bind 9.2.0 ?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But before you do anything, you need to find out who is generating this excess traffic.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; You should turn on query logging. That would&lt;BR /&gt;&amp;gt; log each query that is being made and show&lt;BR /&gt;&amp;gt; you who is generating the high load.&lt;BR /&gt;Already done. I have pics of legitimate traffic.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If you are looking for a monitoring tool, there are two interesting tools that can hook into DNS logs:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; DNStop:&lt;BR /&gt;&amp;gt; &lt;A href="http://dns.measurement-factory.com/tools/dnstop/" target="_blank"&gt;http://dns.measurement-factory.com/tools/dnstop/&lt;/A&gt;&lt;BR /&gt;Everyone knows this site ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; There are others too.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Finally, there is nothing wrong with using&lt;BR /&gt;&amp;gt; tcpdump or other packet sniffer, getting a&lt;BR /&gt;&amp;gt; trac of the packets to see how many are&lt;BR /&gt;&amp;gt; incoming, from where, and for what are they&lt;BR /&gt;&amp;gt; querying.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; By the way, Is this an Internet- or&lt;BR /&gt;&amp;gt; Intranet-facing DNS server?&lt;BR /&gt;Intranet only of course ! &lt;BR /&gt;&lt;BR /&gt;&amp;gt; b) Another possibility is that some of the&lt;BR /&gt;&amp;gt; servers cannot reach internet (maybe another DNS server or mail server) and they are&lt;BR /&gt;&amp;gt;[...]&lt;BR /&gt;This is another possibility. However, we are directly connected to our ISP ...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Your "rndc status" seems incomplete.&lt;BR /&gt;&amp;gt; I expect to see more lines in the report, like:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; recursive clients: 50/35/1000&lt;BR /&gt;&amp;gt; tcp clients: 48/100&lt;BR /&gt;No, my "rndc status" is unfortunately correct! It's a rndc status of a Bind 9.2.0.&lt;BR /&gt;&lt;BR /&gt;This is another rndc status from test server :&lt;BR /&gt;version: 9.5.1-P3&lt;BR /&gt;number of zones: XX&lt;BR /&gt;debug level: 0&lt;BR /&gt;xfers running: 0&lt;BR /&gt;xfers deferred: 0&lt;BR /&gt;soa queries in progress: 0&lt;BR /&gt;query logging is ON&lt;BR /&gt;recursive clients: 0/0/1000&lt;BR /&gt;tcp clients: 0/100&lt;BR /&gt;server is up and running&lt;BR /&gt;&lt;BR /&gt;In this, it's easy to have in real time the number of recursive client. BUT, and ths problem is here for me, it's more difficult witrh Bind 9.2.0 because the "rndc status" return only :&lt;BR /&gt;number of zones: 27&lt;BR /&gt;debug level: 0&lt;BR /&gt;xfers running: 0&lt;BR /&gt;xfers deferred: 0&lt;BR /&gt;soa queries in progress: 0&lt;BR /&gt;query logging is ON&lt;BR /&gt;server is up and running&lt;BR /&gt;&lt;BR /&gt;Source code from bind-9.2.0\bin\named\server.c:2863&lt;BR /&gt; n = snprintf((char *)isc_buffer_used(text),&lt;BR /&gt;       isc_buffer_availablelength(text),&lt;BR /&gt;       "number of zones: %d\n"&lt;BR /&gt;       "debug level: %d\n"&lt;BR /&gt;       "xfers running: %d\n"&lt;BR /&gt;       "xfers deferred: %d\n"&lt;BR /&gt;       "soa queries in progress: %d\n"&lt;BR /&gt;       "query logging is %s\n"&lt;BR /&gt;       "server is up and running",&lt;BR /&gt;       zonecount, ns_g_debuglevel, xferrunning, xferdeferred,&lt;BR /&gt;       soaqueries, server-&amp;gt;log_queries ? "ON" : "OFF");&lt;BR /&gt;    &lt;BR /&gt;Now I'm not trying to find a solution in the logs after the number of recursive clients that there was a BUT I want to see a solution in real time the number of recursive clients.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Cheers,&lt;BR /&gt;Thank you again for your reply</description>
      <pubDate>Thu, 07 Jan 2010 10:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559588#M534204</guid>
      <dc:creator>2xyo</dc:creator>
      <dc:date>2010-01-07T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: DNS monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559589#M534205</link>
      <description>&amp;gt; Forgot to add...&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Another global option in named.conf:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; recursing-file "bind.recurse";&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; This statement defines the file name to which&lt;BR /&gt;&amp;gt; data will be written when the command&lt;BR /&gt;&amp;gt; "rndc recursing" is issued. May be an absolute&lt;BR /&gt;&amp;gt; or relative (to directory) path.&lt;BR /&gt;It's not implemented in Bind 9.2.0 :&lt;BR /&gt;Usage: rndc [-c config] [-s server] [-p port] [-y key] [-V] command&lt;BR /&gt;&lt;BR /&gt;command is one of the following:&lt;BR /&gt;&lt;BR /&gt;  reload        Reload configuration file and zones.&lt;BR /&gt;  reload zone [class [view]]&lt;BR /&gt;                Reload a single zone.&lt;BR /&gt;  refresh zone [class [view]]&lt;BR /&gt;                Schedule immediate maintenance for a zone.&lt;BR /&gt;  reconfig      Reload configuration file and new zones only.&lt;BR /&gt;  stats         Write server statistics to the statistics file.&lt;BR /&gt;  querylog      Toggle query logging.&lt;BR /&gt;  dumpdb        Dump cache(s) to the dump file (named_dump.db).&lt;BR /&gt;  stop          Save pending updates to master files and stop the server.&lt;BR /&gt;  halt          Stop the server without saving pending updates.&lt;BR /&gt;  trace         Increment debugging level by one.&lt;BR /&gt;  trace level   Change the debugging level.&lt;BR /&gt;  notrace       Set debugging level to 0.&lt;BR /&gt;  flush         Flushes all of the server's caches.&lt;BR /&gt;  flush [view]  Flushes the server's cache for a view.&lt;BR /&gt;  status        Display status of the server.&lt;BR /&gt;  *restart      Restart the server.&lt;BR /&gt;&lt;BR /&gt;* == not yet implemented&lt;BR /&gt;Version: named 9.2.0&lt;BR /&gt;&lt;BR /&gt;But I agree with you that this option exists in recent versions of bind.&lt;BR /&gt;Thank you anyway</description>
      <pubDate>Thu, 07 Jan 2010 10:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-monitoring/m-p/4559589#M534205</guid>
      <dc:creator>2xyo</dc:creator>
      <dc:date>2010-01-07T10:08:09Z</dc:date>
    </item>
  </channel>
</rss>

