DNS query against a specific server.

Gisle Vanem gvanem at yahoo.no
Mon Sep 30 09:35:15 EDT 2013


"Chris Angelico" <rosuav at gmail.com> wrote:

> There are a few Python DNS modules. It means adding another
> dependency, but perhaps not as large as twisted. And of course, you
> could always manually send UDP packets and listen for responses, but
> that seems a little unnecessary :)

Then there is pycares; "a Python module which provides an interface to 
c-ares.... c-ares is a C library that performs DNS requests and name resolves 
asynchronously.". I have good experience wih C-ares and it can set
specific nameservers. Ref:
  https://pypi.python.org/pypi/pycares/0.3.0

--gv



More information about the Python-list mailing list