Thanks for your reply. But i still don't understand one thing...pdns-3.1:
An example code of the lookup function: void MyBackend::lookup(const QType& qtype, const string& qdomain, DNSPacket* pkt, int zoneId) { L << Logger::Info << "qtype = " << qtype.getName() << " pkt-qtype = " << pkt->qtype.getName() << endl; L << Logger::Info << "request = " << qdomain << endl; } A dig request query: dig -t A google.com @<server-ip> dig -t CNAME google.com @<server-ip> dig -t AAAA google.com @<server-ip> dig -t SOA google.com @<server-ip> dig -t ANY google.com @<server-ip> dig -t A google.com @<server-ip> The pdns log file: Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:30:19 server pdns[3326]: request = google.com Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:30:19 server pdns[3326]: request = com Dec 7 05:30:19 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:30:19 server pdns[3326]: request = Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME Dec 7 05:30:28 server pdns[3326]: request = google.com Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME Dec 7 05:30:28 server pdns[3326]: request = com Dec 7 05:30:28 server pdns[3326]: qtype = SOA pkt-qtype = CNAME Dec 7 05:30:28 server pdns[3326]: request = Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA Dec 7 05:30:38 server pdns[3326]: request = google.com Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA Dec 7 05:30:38 server pdns[3326]: request = com Dec 7 05:30:38 server pdns[3326]: qtype = SOA pkt-qtype = AAAA Dec 7 05:30:38 server pdns[3326]: request = Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA Dec 7 05:30:46 server pdns[3326]: request = google.com Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA Dec 7 05:30:46 server pdns[3326]: request = com Dec 7 05:30:46 server pdns[3326]: qtype = SOA pkt-qtype = SOA Dec 7 05:30:46 server pdns[3326]: request = Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY Dec 7 05:30:53 server pdns[3326]: request = google.com Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY Dec 7 05:30:53 server pdns[3326]: request = com Dec 7 05:30:53 server pdns[3326]: qtype = SOA pkt-qtype = ANY Dec 7 05:30:53 server pdns[3326]: request = Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:31:05 server pdns[3326]: request = google.com Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:31:05 server pdns[3326]: request = com Dec 7 05:31:05 server pdns[3326]: qtype = SOA pkt-qtype = A Dec 7 05:31:05 server pdns[3326]: request = 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? Best regards, Ilya
_______________________________________________ Pdns-dev mailing list Pdns-dev@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-dev