|
NAMEfiredns_resolvemxalist - Resolve a list of MX records of a hostname and their corresponding A recordsSYNOPSIS#include <firedns.h>-lfiredns struct firedns_mxlist *firedns_resolvemxalist(const char * const name) DESCRIPTIONfiredns_resolvemxalist() attempts to resolve a list of MX records for the hostname name. If it fails, it treats the host as having a priority 0 MX record, and attempts to resolve a list of A and AAAA records for the hostname. If the MX record lookup succeeds, it looks up the list of A and AAAA records for each MX record in parallel. It also checks for RFC-violating CNAMEs for each MX record.RETURN VALUEReturns a pointer to an internal static struct firedns_mxlist *. This structure is the first of a linked list. It contains: char *name;
This function returns NULL on error. Any result return by this function should be freed with firedns_free_mxalist(3). AUTHORIan Gulliver <ian@penguinhosting.net>SEE ALSOlibfiredns(3)firedns_free_mxalist(3)
Visit the GSP FreeBSD Man Page Interface. |