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.
|