def self.load_itar
Net::FTP::open("ftp.iana.org") { |ftp|
ftp.login("anonymous")
ftp.passive = true
ftp.chdir("/itar")
lastname=nil
ftp.gettextfile("anchors.mf") {|line|
next if (line.strip.length == 0)
first = line[0]
if (first.class == String)
first = first.getbyte(0)
end
next if (first==59)
if (line.strip=~(/^DS /) || line.strip=~(/^DNSKEY /))
line = lastname.to_s + ((lastname.absolute?)?".":"") + " " + line
end
ds = RR.create(line)
if ((ds.type == Types::DS) || (ds.type == Types::DNSKEY))
Dnssec.add_trust_anchor(ds)
end
lastname = ds.name
}
}
end