Open Habbie opened 8 years ago
Currently, master logs:
Sep 06 12:01:41 msg="Exception in resolver context " error="[string \"chunk\"]:9: Caught exception: Parsing record content (try 'pdnsutil check-zone'): while parsing IPv6 address: '::1:2:3::4' is invalid
stack traceback:
[C]: in method 'addAnswer'
[string \"chunk\"]:9: in function 'preresolve'" subsystem="syncres" level="0" prio="Error" tid="3" ts="1662458501.169" ecs="" exception="std::exception" mtid="1" proto="udp" qname="www.xyz.com" qtype="A" remote="127.0.0.1:60818"
So that is much better than before. Generating a ServFail
would be nice, but requires quite some restructuring. I'm postponing that to a later milestone.
If I put
dq:addAnswer(pdns.AAAA, "::1:2:3::4")
(note the invalid second::
) in apreresolve
method, recursor will logFeb 23 16:39:02 STL error (nu.nl./AAAA from 127.0.0.1): Exception thrown by a callback function called by Lua
and will not respond to the query.pcall
to be able to see the actual reason (right now it appears the exception becomesuserdata