firedns_resolvemxlist3
Resolve a list of mx records of a hostname
Usage
#include <firedns.h>
-lfiredns
struct firedns_mxlist *firedns_resolvemxlist(const char * const name)
struct firedns_mxlist *firedns_resolvemxlist_r(const char * const name)
Overview
firedns_resolvemxlist() attempts to resolve a list of MX records for the hostname name.
Return value
Returns a pointer to an internal static struct firedns_mxlist *. This structure is the first of a linked list. It contains:
char *name;
unsigned int protocol; (FIREDNS_MX_SMTP or FIREDNS_MX_QMTP)
unsigned int priority;
struct firedns_mxlist *next;
This function returns NULL on error.
Releases
Unchanged in 2 releases since Debian 3.1 (Sarge).