DNS caching in python2.2

Grimm, Garth garth.grimm at hp.com
Mon Nov 1 10:43:54 EST 2004


Cached in the resolver library in python 2.2 (running on Windows2000).
Thought I'd toss the question to the list, to see what kind of quick
answer(s) I got.

I'll be contacting the developers of the server software that the script
runs in (they may have written a resolver cache, even if one doesn't
come with python 2.2).  And I think I can dream up a script to test it
on my own as well.

Thanks,
Garth

Garth Grimm
IMS Common Services (Search Program)
Technical Lead
search.hp.com
(650)857-7305 

-----Original Message-----
From: python-list-bounces+garth.grimm=hp.com at python.org
[mailto:python-list-bounces+garth.grimm=hp.com at python.org] On Behalf Of
Michael Fuhr
Sent: Friday, October 29, 2004 10:12 PM
To: python-list at python.org
Subject: Re: DNS caching in python2.2


"Grimm, Garth" <garth.grimm at hp.com> writes:

> If I write a script that makes successive HTTP requests, using newly 
> instantiated objects from urllib for each request, is there any reason

> to believe that the DNS resolution from the first call will be cached 
> and used for the second call?

Cached where?  The DNS server you're querying probably caches the
results, but the resolver library the program uses might or might not --
different systems behave differently.  You could use a packet sniffer to
find out how your system behaves.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/
-- 
http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list