[Pdns-users] How to send NXDOMAIN using pipe backend?
Aki Tuomi
cmouse at youzen.ext.b2.fi
Fri Jun 19 20:57:26 UTC 2015
On Thu, Jun 18, 2015 at 11:37:39PM -0700, indranil.db wrote:
> That is what i am doing, sending only "END\n".
> But then, i get another request which is a truncated one which is
> Jun 18 11:09:26 Query: 'Q com.my.domain.com IN SOA -1 127.0.0.1'
> Note that the "abc" is missing.
>
> At this point i send SOA record. Finally i send no data. Refer to the logs i
> have mentioned earlier.
> So the data flow:
>
> > Jun 18 11:09:26 Query: 'Q abc.com.my.domain.com IN SOA -1 127.0.0.1'
> -- Send only END\n
> > Jun 18 11:09:26 Query: 'Q com.my.domain.com IN SOA -1 127.0.0.1'
> -- Now send SOA
> > Jun 18 11:09:26 Query: 'Q abc.com.my.domain.com IN NS -1 127.0.0.1'
> -- Send only END\n
> > Jun 18 11:09:26 Query: 'Q abc.com.my.domain.com IN ANY -1 127.0.0.1'
> -- Send only END\n as there is no record available
>
> If i do not send END at the start and instead send the SOA, then later send
> no data then i get NOERROR.
>
> So is it a way to tell PDNS in the first response only that no records
> available so that i stops sending more requests and just treat NXDOMAIN?
>
> -- IB
>
>
There is option called 'pipe-regex', you could probably use this for your
benefit. See https://doc.powerdns.com/md/authoritative/backend-pipe/
Aki
More information about the Pdns-users
mailing list