<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">After upgrading from 2.9.22 to 3.1 We have bumped into an issue that our resolving via the pipe backed wasn't working anymore.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">We were using something like </div><div style="font-family:arial,sans-serif;font-size:13px">pipe-regex=^(.*).(<a href="http://ourcompany.com/" target="_blank">ourcompany.com</a>);(ANY|A)$</div>
<div style="font-family:arial,sans-serif;font-size:13px">in our pdns config(ANY|ALL is suggested by the official docs: <a href="http://doc.powerdns.com/html/backends-detail.html" target="_blank">http://doc.powerdns.com/html/backends-detail.html</a>)</div>
<div style="font-family:arial,sans-serif;font-size:13px">and our backend was only expecting HELO and Q requests, and was responding to any Q request with an A record.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">first, we enabled the query-logging, and we were seeing a bunch of</div><div style="font-family:arial,sans-serif;font-size:13px">Query for '<a href="http://something.ourcompany.com/" target="_blank">something.ourcompany.com</a>' type 'SOA' failed regex '^(.*).(<a href="http://ourcompany.com/" target="_blank">ourcompany.com</a>);(.*)$'<br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">After adding the SOA to the pipe-regex pattern (ANY|A|SOA) our backend finally started to receive requests, but still not working, because we started getting </div>
<div style="font-family:arial,sans-serif;font-size:13px">AXFR -1<br></div><div style="font-family:arial,sans-serif;font-size:13px">requests after the Q requests(even thought that those request are not allowed by the pipe-regex and they don't appear in the query-log), and not handling those caused the resolving to fail before sending the Q to the backend.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">My guess is that we should handle the SOA requests properly(send the SOA for the A r), and we are seeing the AXFR requests because pdns is confused by the A response to the SOA request.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Could somebody verify that this is what's happening, and it is only a miracle that this setup was working with previous powerdns versions?</div>
<div style="font-family:arial,sans-serif;font-size:13px">I guess it would be also nice if somebody could update the documentation on <a href="http://doc.powerdns.com/html/backends-detail.html" target="_blank">http://doc.powerdns.com/html/backends-detail.html</a> a bit, so people would write proper backends from the start instead of bumping into this issues after upgrading.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">-- </span><br></div>Ferenc Kovács<br>@Tyr43l - <a href="http://tyrael.hu" target="_blank">http://tyrael.hu</a>
</div>