[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Dec 5 19:48:06 1998 
Subject:resolv.h and res_search 
From:tim ishi 
Volume-ID:981205.01 

Hi, I recently wrote a program that uses res_search() from the
<resolv.h> library to lookup the MX records for various domains.  The
only documentation I could find for these <resolv.h> functions (man
pages) neglect to explain how to interpret the results.  I wrote my
own function that parses the buffer and extracts what I need, but it
only works about 85% of the time because the assumptions I made about
the return buffer, do not always hold true.  If anyone has used these
<resolv.h> functions before or knows about some resources that explain
how to interpret the return buffer, that'd really help me out.