# File lib/dnstraverse/message_utility.rb, line 23 def msg_comment(msg, args) warnings = Array.new if args[:want_recursion] then if not msg.header.ra then warnings.push "#{msg.answerfrom} doesn't allow recursion" end else if msg.header.ra then warnings.push "#{msg.answerfrom} allows recursion" end end if msg.header.tc then warnings.push "#{msg.answerfrom} sent truncated packet" end for warn in warnings do Log.warn { warn } end Log.debug { "#{msg.answerfrom} code #{msg.rcode}" } return warnings end