diff --git a/modules/pipebackend/pipebackend.cc b/modules/pipebackend/pipebackend.cc index adf74ed9ddf2..b7f76dc62764 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -109,11 +109,11 @@ PipeBackend::PipeBackend(const string &suffix) } } -void PipeBackend::lookup(const QType &qtype,const string &qname, DNSPacket *pkt_p, int zoneId) +void PipeBackend::lookup(const QType& qtype,const DNSName& qname, DNSPacket *pkt_p, int zoneId) { try { d_disavow=false; - if(d_regex && !d_regex->match(qname+";"+qtype.getName())) { + if(d_regex && !d_regex->match(qname.toStringNoDot()+";"+qtype.getName())) { if(::arg().mustDo("query-logging")) L<= 2) @@ -150,7 +150,7 @@ void PipeBackend::lookup(const QType &qtype,const string &qname, DNSPacket *pkt_ d_qname=qname; } -bool PipeBackend::list(const string &target, int inZoneId, bool include_disabled) +bool PipeBackend::list(const DNSName& target, int inZoneId, bool include_disabled) { try { d_disavow=false; @@ -159,7 +159,7 @@ bool PipeBackend::list(const string &target, int inZoneId, bool include_disabled // type qname qclass qtype id ip-address if (d_abiVersion >= 4) - query<<"AXFR\t"< d_coproc; - string d_qname; + DNSName d_qname; QType d_qtype; Regex* d_regex; string d_regexstr;