]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsrecords.cc
snap
[thirdparty/pdns.git] / pdns / dnsrecords.cc
index 58ace38c4d0780c75584694534de3387c017d8d2..e30583494ad8ca41ae4d369e65733086c54cd318 100644 (file)
@@ -63,12 +63,9 @@ bool DNSResourceRecord::operator==(const DNSResourceRecord& rhs)
   string lcontent=toLower(content);
   string rcontent=toLower(rhs.content);
 
-  string llabel=toLower(qname);
-  string rlabel=toLower(rhs.qname);
-
   return
-    tie(llabel, qtype, lcontent, ttl) ==
-    tie(rlabel, rhs.qtype, rcontent, rhs.ttl);
+    tie(qname, qtype, lcontent, ttl) ==
+    tie(rhs.qname, rhs.qtype, rcontent, rhs.ttl);
 }
 
 
@@ -77,8 +74,8 @@ DNSResourceRecord::DNSResourceRecord(const DNSRecord &p) {
   auth=true;
   disabled=false;
   qname = p.d_label;
-  if(!qname.empty())
-    boost::erase_tail(qname, 1); // strip .
+  // if(!qname.empty())
+  //   boost::erase_tail(qname, 1); // strip .
 
   qtype = p.d_type;
   ttl = p.d_ttl;