# File ../../auditor/lib/kasp_auditor/partial_auditor.rb, line 545
      def scan_temp_domain_files(domain_filename)
        # Now go through the temp files for the domains of interest, and ensure that they are all good.
        @parent.domain_list.each{|domain|
          delegation = false
          rrsets = []
          types = []
          sigs = []
          #          dont_check_hash = false
          # Pick out all the records for that domain
          IO.foreach(domain_filename) {|line|
            if (line.split()[0] == domain)
              begin
                rr = RR.create(line)
              rescue Exception
                next
              end
              if (rr.type == Types::NSEC3 || (rr.type == Types::RRSIG && rr.type_covered == Types::NSEC3))
                #                dont_check_hash = true # It's already a hashed owner name
                types.push(rr.type)
                next
              end
              types.push(Types::RRSIG) if rr.type == Types::RRSIG
              delegation = true if (rr.type == Types::NS)
              found_rrset = false
              rrsets.each {|rrset|
                if (rrset.add(rr))
                  found_rrset = true
                  break
                end
              }
              if (!found_rrset)
                if (rr.type == Types::RRSIG)
                  sigs.push(rr)
                end
                new_rrset = RRSet.new(rr)
                rrsets.push(new_rrset)
                types.push(new_rrset.type)
              end

            end
          }
          sigs.each {|sig|
            # Can we find an rrset?
            rrsets.each {|rrset|
              if (rrset.add(sig))
                sigs.delete(sig)
                break
              end
            }
          }
          rrsets.each {|rrset|
            if (rrset.type == Types::RRSIG)
            end
          }
          # And then check them
          check_domain(rrsets, types, delegation)
          # Now check the hashed owner name
          if (@config.denial.nsec3) #  && !dont_check_hash)
            hashed_owner_name = @parent.get_hashed_owner_name(domain)
            hashed_rrset = RRSet.new
            found = false
            IO.foreach(domain_filename) {|line|
              if (line.split()[0] == hashed_owner_name)
                found = true
                begin
                  rr = RR.create(line)
                rescue Exception => e
                  found = false # Don't try to check this - we can't read a record
                  break
                end
                hashed_rrset.add(rr)
              end
            }
            if (found)
              if (hashed_rrset.type == Types::RRSIG)
                print "\nCAN ONLY FIND NSEC3 RRSIGS FOR #{hashed_owner_name}\n\n"
              end
              check_domain([hashed_rrset], types, delegation)
            else
              # Assume that we have hashed an already hashed owner name
            end
          end
        }
      end