---
name: "firedns_resolvemx"
section: "3"
platform: "linux"
package: "libfiredns-dev"
version: "0.9.12+dfsg-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/firedns_resolvemx"
---

# firedns\_resolvemx(3)

Resolve an MX record of a hostname

## NAME

firedns\_resolvemx - Resolve an MX record of a hostname

## SYNOPSIS

**#include \<firedns.h\>**\
 **-lfiredns**

**char \*firedns\_resolvemx(const char \* const** *name***)**\
 **char \*firedns\_resolvemx\_r(const char \* const** *name***)**

## DESCRIPTION

firedns\_resolvemx() attempts to resolve an MX record for the hostname *name*.

## RETURN VALUE

Returns a pointer to an internal static *char \** that contains a MX record of *name*, or *NULL* on error.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfiredns**(3)](/libfiredns/3.md)
