DNS caching in python2.2

G

Grimm, Garth

Hello,

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?

Thanks

Garth Grimm
IMS Common Services (Search Program)
Technical Lead
(650)857-7305
 
M

Michael Fuhr

Grimm said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,089
Members
47,689
Latest member
kilaocrhtbfnr

Latest Threads

Top