Re: Query a DNS in C
phil-news-nospam_at_ipal.net
Date: 04/17/04
- Next message: Eyal Goren: "Re: Problems with shared libraries on Solaris"
- Previous message: Barry Margolin: "Re: C Sockets Newbie: Easy question"
- In reply to: Jens.Toerring_at_physik.fu-berlin.de: "Re: Query a DNS in C"
- Next in thread: joe_at_invalid.address: "Re: Query a DNS in C"
- Reply: joe_at_invalid.address: "Re: Query a DNS in C"
- Reply: Konstantin Sorokin: "Re: Query a DNS in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Apr 2004 15:36:29 GMT
On 14 Apr 2004 21:08:00 GMT Jens.Toerring@physik.fu-berlin.de wrote:
| If it's just that the OP can have my code for whatever it's worth - it's
| supposed to take the name of the machine to send mail to (plus the name
| of the local machine) as input arguments and then to return the names of
| the machines prepared to accept mail for the remote machine successively
| (in order of priority). It doesn't do the talking with the DNS server
| directly, that's handled via the res_xxx() and dn_xxx() functions from
| libresolv, it just tries to make sense out of the DNS servers reply. So
| if the Christian is interested my email address isn't munged (just don't
| send me HTML formated mails, they tend to go to /dev/null directly).
Do you know of a library which can assist in doing the DNS queries in a
non-blocking way? It would be such that during any number of outstanding
queries, the process can continue to do other things, or wait in parallel
for these answers and other things it is waiting for. I would envision
(since I am thinking of writing my own if no good one can be found) that
such a library would have functions to set up a proper socket on which to
do waits (select or poll), functions to construct queries, a function to
do a non-blocking read/receive for any waiting answers, and functions to
take apart the answers.
-- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | -----------------------------------------------------------------------------
- Next message: Eyal Goren: "Re: Problems with shared libraries on Solaris"
- Previous message: Barry Margolin: "Re: C Sockets Newbie: Easy question"
- In reply to: Jens.Toerring_at_physik.fu-berlin.de: "Re: Query a DNS in C"
- Next in thread: joe_at_invalid.address: "Re: Query a DNS in C"
- Reply: joe_at_invalid.address: "Re: Query a DNS in C"
- Reply: Konstantin Sorokin: "Re: Query a DNS in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|