Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55074

Re: DNS query against a specific server.

From "Gisle Vanem" <gvanem@yahoo.no>
References <634fa158-1d15-4a7e-ac0f-7a3f57f55cc7@googlegroups.com> <mailman.481.1380544612.18130.python-list@python.org> <e76f9cfa-c8ad-4eee-86e3-1f0a0bffe646@googlegroups.com> <CAPTjJmqz82=zWBjKtMOqOx_iRx=1+C9mFe484Uv8D4rFZj0_Gw@mail.gmail.com>
Subject Re: DNS query against a specific server.
Date 2013-09-30 15:35 +0200
Newsgroups comp.lang.python
Message-ID <mailman.486.1380548298.18130.python-list@python.org> (permalink)

Show all headers | View raw


"Chris Angelico" <rosuav@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

DNS query against a specific server. Michel Albert <exhuma@gmail.com> - 2013-09-30 04:42 -0700
  Re: DNS query against a specific server. William Ray Wing <wrw@mac.com> - 2013-09-30 08:36 -0400
    Re: DNS query against a specific server. Michel Albert <exhuma@gmail.com> - 2013-09-30 05:45 -0700
      Re: DNS query against a specific server. Chris Angelico <rosuav@gmail.com> - 2013-09-30 22:56 +1000
      Re: DNS query against a specific server. "Gisle Vanem" <gvanem@yahoo.no> - 2013-09-30 15:35 +0200
  Re: DNS query against a specific server. Ervin Hegedüs <airween@gmail.com> - 2013-09-30 14:54 +0200
    Re: DNS query against a specific server. Michel Albert <exhuma@gmail.com> - 2013-09-30 06:04 -0700

csiph-web