[Python-Dev] _socket efficiencies ideas

Marcus Mendenhall marcus.h.mendenhall@vanderbilt.edu
Wed, 9 Apr 2003 09:32:00 -0500

On Wednesday, April 9, 2003, at 09:24 AM, Anthony Baxter wrote:

>>>> Sean Reifschneider wrote
>> My first thought is that there should be a local DNS cache on the
>> machine that is running these apps.  My second thought is that Python
>> could benefit from caching some lookup information...
> Ick ick. This is putting a bunch of code for a stub resolver into 
> python.
> This stuff is hard to get right - I implemented this on top of pydns, 
> and
> it was a lot of work to get (what I think is) correct, for not very 
> much
> gain.
> The idea of either suppressing DNS lookups for all-numeric addresses, 
> or
> some sort of extended API for suppressing DNS lookups might be better,
> but really, isn't this the job of the stub resolver?
This is part of the resolver API, via the AI_NUMERIC flags.  I am just 
trying to expose that API to the top level of python.


> Anthony
> -- 
> Anthony Baxter     <anthony@interlink.com.au>
> It's never too late to have a happy childhood.