Index: /trunk/DNSDB.pm
===================================================================
--- /trunk/DNSDB.pm	(revision 417)
+++ /trunk/DNSDB.pm	(revision 418)
@@ -3460,5 +3460,5 @@
   $$host =~ s/^\s+//;
   $$host =~ s/\s+$//;
-  if ($typemap{$$type} ne 'TXT') {
+  if ($typemap{$$rectype} ne 'TXT') {
     # Leading or trailng spaces could be legit in TXT records.
     $$val =~ s/^\s+//;
@@ -3587,5 +3587,5 @@
   $$host =~ s/^\s+//;
   $$host =~ s/\s+$//;
-  if ($typemap{$$type} ne 'TXT') {
+  if ($typemap{$$rectype} ne 'TXT') {
     # Leading or trailng spaces could be legit in TXT records.
     $$val =~ s/^\s+//;
