[Opendnssec-commits] alex r6989 - trunk/monitor/lib

commits at svn.opendnssec.org commits at svn.opendnssec.org
Tue Jan 29 16:33:20 CET 2013


Author: alex
Date: Tue Jan 29 16:33:20 2013
New Revision: 6989
URL: http://fisheye.opendnssec.org/changelog/opendnssec?cs=6989

Log:
Just check the RRSet that we are interested in

Modified:
   trunk/monitor/lib/dnssec_monitor.rb

Modified: trunk/monitor/lib/dnssec_monitor.rb
==============================================================================
--- trunk/monitor/lib/dnssec_monitor.rb	Tue Jan 29 11:57:11 2013	(r6988)
+++ trunk/monitor/lib/dnssec_monitor.rb	Tue Jan 29 16:33:20 2013	(r6989)
@@ -1008,14 +1008,16 @@
 
 
       return if type == Types::RRSIG
-#      ret = query_ignore_nxdomain(name, type)
+      #      ret = query_ignore_nxdomain(name, type)
       begin
-        if (@options.csk)
-          Dnssec.verify(ret, @zsks)
-        else
-          Dnssec.verify(ret, @ksks)
+        if (ret.answer.rrsets(type).length > 0)
+          if (@options.csk)
+            Dnssec.verify_rrset(ret.answer.rrsets(type)[0], @zsks)
+          else
+            Dnssec.verify_rrset(ret.answer.rrsets(type)[0], @ksks)
+          end
+          @controller.log(LOG_INFO, "(#{@nsname}): #{name}, #{type} verified OK")
         end
-        @controller.log(LOG_INFO, "(#{@nsname}): #{name}, #{type} verified OK")
       rescue VerifyError => e
         @controller.log(LOG_ERR, "(#{@nsname}): #{name}, #{type} verification failed : #{e}, #{ret}")
       end



More information about the Opendnssec-commits mailing list