Index: /trunk/DNSDB.pm
===================================================================
--- /trunk/DNSDB.pm	(revision 753)
+++ /trunk/DNSDB.pm	(revision 754)
@@ -1391,8 +1391,8 @@
   # or the intended parent domain for live records.
   my $pname = ($args{defrec} eq 'y' ? 'DOMAIN' : $self->domainName($args{id}));
-  ${$args{host}} =~ s/\.*$/\.$pname/ if (${$args{host}} ne '@' && ${$args{host}} !~ /$pname$/i);  
-
-  # don't do the cache thing on default records
-  return ('OK','OK') if $defrec ne 'n';
+  ${$args{host}} =~ s/\.*$/\.$pname/ if (${$args{host}} ne '@' && ${$args{host}} !~ /$pname$/i);
+
+  # Only do the cache thing on live/active records
+  return ('OK','OK') unless $args{defrec} eq 'n';
 
   # now we check/update the cached target address info
