Re: making socket.getaddrinfo use cached dns

2011-07-08 Thread high bandwidth
queries. After installing BIND9 and starting it, getaddrinfo is almost instantaneous for repeated queries. Thanks! *Chris Angelico* rosuav at gmail.com wrote: On Fri, Jul 8, 2011 at 4:18 AM, high bandwidth http://mail.python.org/mailman/listinfo/python-list>> wrote: >* I use cached dns

making socket.getaddrinfo use cached dns

2011-07-07 Thread high bandwidth
I use cached dns lookups with pdnsd on my ubuntu machine to speed up web access as regular lookups can take 15-30 seconds. However, python's mechanize and urllib etc use socket.getaddrinfo, which seems not to be using dns cacheing or taking a long time because of ipv6 lookups. In either case, I sub