From 9777a223db7b1462511d6f38af8961505aec5011 Mon Sep 17 00:00:00 2001 From: David Blacka Date: Tue, 19 Sep 2006 14:47:45 +0000 Subject: [PATCH] make sure the names are lowercased git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@99 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e --- src/com/verisignlabs/dnssec/cl/ZoneFormat.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/verisignlabs/dnssec/cl/ZoneFormat.java b/src/com/verisignlabs/dnssec/cl/ZoneFormat.java index ee15eca..c5b095a 100644 --- a/src/com/verisignlabs/dnssec/cl/ZoneFormat.java +++ b/src/com/verisignlabs/dnssec/cl/ZoneFormat.java @@ -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;