Thanks for your reply.<div><br></div><div>But i still don't understand one thing...pdns-3.1:</div><div><br></div><div>An example code of the lookup function:</div><div><br></div><div><div>void MyBackend::lookup(const QType& qtype, const string& qdomain, DNSPacket* pkt, int zoneId)</div>
<div>{</div><div> L << Logger::Info << "qtype = " << qtype.getName() << " pkt-qtype = " << pkt->qtype.getName() << endl;</div></div><div> L << Logger::Info << "request = " << qdomain << endl;</div>
<div>}</div><div><br></div><div>A dig request query:</div><div><br></div><div>dig -t A <a href="http://google.com">google.com</a> @<server-ip></div><div>dig -t CNAME <a href="http://google.com">google.com</a> @<server-ip> </div>
<div>dig -t AAAA <a href="http://google.com">google.com</a> @<server-ip></div><div>dig -t SOA <a href="http://google.com">google.com</a> @<server-ip></div><div>dig -t ANY <a href="http://google.com">google.com</a> @<server-ip></div>
<div>dig -t A <a href="http://google.com">google.com</a> @<server-ip></div><div><br></div><div>The pdns log file:</div><div><br></div><div><div>Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A</div>
<div>Dec 7 05:30:19 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A</div><div>Dec 7 05:30:19 server pdns[3326]: request = com</div>
<div>Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A</div><div>Dec 7 05:30:19 server pdns[3326]: request = </div><div><br></div><div>Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME</div>
<div>Dec 7 05:30:28 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME</div><div>Dec 7 05:30:28 server pdns[3326]: request = com</div>
<div>Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME</div><div>Dec 7 05:30:28 server pdns[3326]: request = </div><div><br></div><div>Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA</div>
<div>Dec 7 05:30:38 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA</div><div>Dec 7 05:30:38 server pdns[3326]: request = com</div>
<div>Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA</div><div>Dec 7 05:30:38 server pdns[3326]: request = </div><div><br></div><div>Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA</div>
<div>Dec 7 05:30:46 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA</div><div>Dec 7 05:30:46 server pdns[3326]: request = com</div>
<div>Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA</div><div>Dec 7 05:30:46 server pdns[3326]: request = </div><div><br></div><div>Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY</div>
<div>Dec 7 05:30:53 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY</div><div>Dec 7 05:30:53 server pdns[3326]: request = com</div>
<div>Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY</div><div>Dec 7 05:30:53 server pdns[3326]: request = </div><div><br></div><div>Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A</div>
<div>Dec 7 05:31:05 server pdns[3326]: request = <a href="http://google.com">google.com</a></div><div>Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A</div><div>Dec 7 05:31:05 server pdns[3326]: request = com</div>
<div>Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A</div><div>Dec 7 05:31:05 server pdns[3326]: request = </div></div><div><br></div><div><br></div><div>Is 'qtype' in the lookup function and the DNSPacket::qtype should be the same? From the log file i see they are not. Or 'qtype' in the lookup function has a different purpose?</div>
<div><br></div><div>Best regards,</div><div>Ilya</div>