From: Bert Hubert Date: Mon, 7 Feb 2011 09:42:22 +0000 (+0000) Subject: fix up MyDNS compatible backend compilation - this might eventually offer MyDNS users... X-Git-Tag: auth-3.0~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56f10183e71f560770678c8001ba34e32735cd1b;p=pdns fix up MyDNS compatible backend compilation - this might eventually offer MyDNS users an easy DNSSEC migration path git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1986 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/modules/mydnsbackend/mydnsbackend.cc b/modules/mydnsbackend/mydnsbackend.cc index 5599c54d7..4a69d8b5a 100644 --- a/modules/mydnsbackend/mydnsbackend.cc +++ b/modules/mydnsbackend/mydnsbackend.cc @@ -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 {