# File ../../auditor/lib/kasp_auditor/auditor.rb, line 929
    def add_domain_to_types_file(domain, iterations, salt, hash_alg, types_string)
      hashed_domain = RR::NSEC3.calculate_hash(domain, iterations,
        RR::NSEC3.decode_salt(salt), hash_alg)
      File.open(@working + "#{File::SEPARATOR}audit.types.#{Process.pid}", "a") { |f|
        hashed_name = hashed_domain+"."+@soa.name.to_s
        if (@soa.name.to_s == "")
          hashed_name = hashed_domain
          if (hashed_name == "")
            hashed_name = "."
          end
        end
        domain_string = domain
        if (domain.to_s == "")
          domain_string = "."
        end
        f.write("#{hashed_name} #{domain_string} #{types_string}\n")
      }
    end