def get_next_rr(file)
while (!file.eof?)
line = file.gets
next if (!line || (line.length == 0))
next if (line.index(';') == 0)
next if (line.strip.length == 0)
rr_text = "\n"
begin
rr_text = line[line.index(Preparser::SORT_SEPARATOR) +
Preparser::SORT_SEPARATOR.length, line.length]
rescue Exception => e
log(LOG_INFO, "File contains unrecognisable line : #{rr_text}, ERROR : #{e} - skipping this line")
next
end
begin
rr = RR.create(rr_text)
return rr
rescue Exception => e
split = rr_text.split
if (split[3].index("NSEC3"))
@unknown_nsecs[split[0]] = split[8]
elsif (split[3].index("NSEC"))
@unknown_nsecs[split[0]] = split[4]
end
log(LOG_INFO, "File contains invalid RR : #{rr_text.chomp}, ERROR : #{e} - skipping this record")
end
end
return nil
end