make sure the names are lowercased

git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@99 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
David Blacka 2006-09-19 14:47:45 +00:00
parent d0d72f3a09
commit 9777a223db
1 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,7 @@ import java.util.logging.Logger;
import org.apache.commons.cli.*;
import org.xbill.DNS.Master;
import org.xbill.DNS.Record;
import org.xbill.DNS.Section;
import com.verisignlabs.dnssec.security.RecordComparator;
@ -177,7 +178,11 @@ public class ZoneFormat
while ((r = master.nextRecord()) != null)
{
res.add(r);
// This is a relatively clumsy way to lower-case all of the Names in the
// zone.
byte[] wire = r.toWireCanonical();
Record canon_record = Record.fromWire(wire, Section.ANSWER);
res.add(canon_record);
}
return res;