vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/zone_reader.rb
#  This method is included only for OpenDNSSEC support. It should not be
#  used otherwise.
#  Frig the RR type so that NSEC records appear last in the RRSets.
#  Also make sure that DNSKEYs come first (so we have a key to verify
#  the RRSet with!).
This method is included only for OpenDNSSEC support. It should not be
used otherwise.
Frig the RR type so that NSEC records appear last in the RRSets.
Also make sure that DNSKEYs come first (so we have a key to verify
the RRSet with!).
This method is included only for OpenDNSSEC support . It should not be used otherwise . Frig the RR type so that NSEC records appear last in the RRSets . Also make sure that DNSKEYs come first ( so we have a key to verify the RRSet with! ) .
def prefix_for_rrset_order(type, type_was) 
      if ['NSEC', 'NSEC3'].include?type.string
        if (type_was == Types::RRSIG)
          type_string = "ZZ" + type.string
        else
          type_string = "ZZZ" + type.string
        end
      elsif type == Types::DNSKEY
        type_string = "0" + type.string
      elsif type == Types::NS
        type_string = "1" + type.string
      else
        type_string = type.string
      end
      return type_string
    end
def prefix_for_rrset_order ( type , type_was ) if [ 'NSEC' , 'NSEC3' ] . include? type . string if ( type_was == Types :: RRSIG ) type_string = "ZZ" + type . string else type_string = "ZZZ" + type . string end elsif type == Types :: DNSKEY type_string = "0" + type . string elsif type == Types :: NS type_string = "1" + type . string else type_string = type . string end return type_string end
This method is included only for OpenDNSSEC support.
This method is included only for OpenDNSSEC support .
# :nodoc: all #  Now make sure that NSEC(3) RRs go to the back of the list #  Get the RRSIG first #  Make sure that we see the NS records first so we know the delegation status
type
<not_specific>
type_was
<not_specific>