Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCache that DNS UDP query led to TC #742
Comments
This comment has been minimized.
This comment has been minimized.
|
That's certainly an optimization we should consider. It might take a while until we get to it – PRs are always welcome, of On Wed, May 27, 2015 at 4:20 PM Miek Gieben notifications@github.com
|
miekg commentedMay 27, 2015
Currently the code in
retrieval/discovery/dns.goalways does a UDP lookup first. When this returns a truncated packet, a TCP query is tried instead. So far so good.I think it makes sense to implement some kind of caching here, so once a TC bit is seen for a name, only TCP queries are done for the next X minutes (or whatever).