Hello,

I'm playing around the "udpQueryResponse" feature of the Recursor to implement 
an automatic domain search for short hostnames (on dedicated internal resolvers 
used by our operational teams). 
I have implemented it in the "nxdomain" hook.

Everything works great, but I have 2 questions :

1/ what is the timeout of a "udpQueryResponse" call via dq.followUpFunction ? 
is there any relationship with the "network-timeout" parameter ?

2/ my answer is a CNAME (with the FQDN found) with a specific TTL 
("cnameTTL=345600") and with a followCNAMERecords follow-up function :
        dq:addAnswer(pdns.CNAME, dq.udpAnswer, cnameTTL)
        dq.rcode = 0
        dq.followupFunction="followCNAMERecords"

But it seems that the response is only cached in the Packet Cache, because 1 
hour after the first udp server call, the resolver executes the udp server call 
again, and 1H is my default "packetcache-ttl" value.
Maybe it's the wanted behaviour because I use the "nxdomain" hook ?
Is there an implementation that may put my answer in the Record Cache (with 
respect of my TTL) ?

Thanks in advance for your explanations.

Best regards,
--
David Gavarret

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to