firedns_resolvemxlist(3)

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

  1. 3.1–4.0

Author

Ian Gulliver <[email protected]>

From libfiredns-dev 0.9.12+dfsg-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.