<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Dmitriy,<div class=""><br class=""></div><div class=""><a href="https://doc.powerdns.com/authoritative/settings.html#log-dns-queries" class="">https://doc.powerdns.com/authoritative/settings.html#log-dns-queries</a> states that it logs "all incoming DNS queries", not the results.</div><div class=""><br class=""></div><div class="">If you want to log the results, you'll need to either increase the loglevel, tcpdump the results and parse those, or add something in front of the server (eg dnsdist) where you'd capture the result codes and log.</div><div class=""><br class=""></div><div class="">Frank</div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 14 Jun 2022, at 13:38, Dmitriy Koff via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com" class="">pdns-users@mailman.powerdns.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello!<div class=""><br class=""></div><div class="">I'm trying to configure log for PowerDNS (4.6.2) and cannot figure how to log served responses (i.e. NOERROR, NXDOMAIN, SERVFAIL, etc)<br class=""><br class=""><div class="">/etc/pdns/pdns.conf (parameters regarding logs)<br class="">loglevel=5<br class="">log-dns-details=yes<br class="">log-dns-queries=yes<br class="">query-logging=no<br class=""><br class=""># nslookup <a href="http://example.com/" class="">example.com</a> 127.0.0.1<br class="">Server:         127.0.0.1<br class="">Address:        127.0.0.1#53<br class="">** server can't find <a href="http://example.com/" class="">example.com</a>: NXDOMAIN<br class=""><br class="">All i've got in log is packetcache status of request (miss or hit) -- </div><div class="">"Remote 127.0.0.1 wants '<a href="http://example.com/" class="">example.com</a>|A', do = 0, bufsize = 512: packetcache MISS"<br class=""><br class="">Expected something like </div><div class="">"Remote 127.0.0.1 wants '<a href="http://example.com/" class="">example.com</a>|A', do = 0, bufsize = 512: packetcache MISS, <b class="">NXDOMAIN</b>"<br class=""></div><div class=""><br class=""></div><div class="">Thanks in advance.</div></div></div>
_______________________________________________<br class="">Pdns-users mailing list<br class=""><a href="mailto:Pdns-users@mailman.powerdns.com" class="">Pdns-users@mailman.powerdns.com</a><br class="">https://mailman.powerdns.com/mailman/listinfo/pdns-users<br class=""></div></blockquote></div><br class=""></div></body></html>