[Pdns-dev] Qtype SOA issues

Ilya Larkin ilarkin at crystalnix.com
Fri Dec 7 05:44:22 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20121207/ceb68da3/attachment.html>


More information about the Pdns-dev mailing list