Resolved, used adns with python bindings...
I have a scenario in which i have to do the following:
- Load a domain
- Load what record type is to be queried
- Load list of DNS
- Perform query, fetch results and display them.
I have tried this but its not multi threaded and even a single query takes about 3 seconds. I looked at ADNS, its python binding and http://www.catonmat.net/blog/asynchronous-dns-resolution , its much much faster than any other way but i still haven't found a way with ADNS Python bindings to query a specific DNS server instead of the ones used in resolv.conf.
What do you think? Is there a solution? Or should i launched each ADNS query in a chrooted environment with resolv.conf created the fly?
Oh and i would prefer it to be PHP/Python to easily include it in an appiication.