Article View: be.comp.programming
Article #15791Mx lookup with res_query
From: Mikael Chambon
Date: Thu, 17 Aug 2000 00:00
Date: Thu, 17 Aug 2000 00:00
20 lines
1343 bytes
1343 bytes
HEllo, I am trying to do a MX lookup in C (under linux RH6.2),
in order to do it I use the res_query function that should do the job.
int res_query(const char *dname, int class, int type,
unsigned char *answer, int anslen);
The problem is that I can't find any information about the "type",
It should be there that I write MX. But what is the proper Integer that I
should write to do a MX lookup ?? If someone has some informations ...
I 've already check in /usr/include/resolv.h and res_query.c
but I didn't find anything..
Thx very much in advance..
--
Mikael Chambon | ICQ 10249913 | Paris France
WORK => NOSPAMmchambon@grolier.fr
HOME => NOSPAMquanta@cybercable.fr
SCHOOL => NOSPAMchambo_m@epita.fr (Please remove NOSPAM)
Technical Details
Message-ID:
<8ngfhd$obc$5@news5.isdnet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,2789057006640dee,start X-Google-Attributes: gidfcea4,public From: quanta@akasha.cronos.org (Mikael Chambon) Subject: Mx lookup with res_query Date: 2000/08/17 Message-ID: <8ngfhd$obc$5@news5.isdnet.net> X-Deja-AN: 659284281 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@isdnet.net X-Trace: news5.isdnet.net 966508909 24940 195.132.59.11 (17 Aug 2000 10:41:49 GMT) Mime-Version: 1.0 NNTP-Posting-Date: 17 Aug 2000 10:41:49 GMT Newsgroups: be.comp.programming