]> granicus.if.org Git - pdns/commitdiff
fix up MyDNS compatible backend compilation - this might eventually offer MyDNS users...
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 7 Feb 2011 09:42:22 +0000 (09:42 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 7 Feb 2011 09:42:22 +0000 (09:42 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1986 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/mydnsbackend/mydnsbackend.cc

index 5599c54d73eb33ba2f381c717eec4f0d55ad7b4b..4a69d8b5a91f72e4a7a36b367c1529ca8e3e6177 100644 (file)
@@ -296,7 +296,8 @@ bool MyDNSBackend::get(DNSResourceRecord &rr) {
                }
         }
 
-        if (rr.qtype == "NS" || rr.qtype == "MX" || rr.qtype == "CNAME" || rr.qtype == "PTR") {
+        if (rr.qtype.getCode() == QType::NS || rr.qtype.getCode()==QType::MX || 
+                rr.qtype.getCode() == QType::CNAME || rr.qtype.getCode() == QType::PTR) {
                if (rr.content[rr.content.length()-1] == '.') {
                        rr.content.erase(rr.content.length()-1); // Fully qualified, nuke the last .
                } else {