From:  "Vulimiri, Ashish" <vulimir1@illinois.edu>
Date:  06 Dec 2014 05:12:12 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.tech.network
Subject:  

Re: Reducing DNS latency

NNTP-Posting-Host:  63.245.216.66

> On Dec 5, 2014, at 1:59 PM, Daniel Stenberg  wrote:
> 
> On Fri, 5 Dec 2014, Vulimiri, Ashish wrote:
> 
>> Would there by any interest in incorporating something like this in the Firefox code?
> 
> Have you given any closer thoughts on more exactly how it would or could be done? Firefox is using the "stock" name resolving functions after all...

I think this would need to be done as a drop-in replacement for getaddrinfo and similar that actually goes off and sends requests to multiple DNS servers, listens for responses, and returns once it gets a first reply.

One issue is that depending on how this is implemented, it would either end up creating a separate socket on each DNS request to send requests and wait for responses, or require a separate thread that would manage all requests/responses -- both of which are their own form of overhead.