ldns_rr_mx_preference(3)

ldns_rr_mx_preference3

Get mx rr rdata fields

Usage

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_rdf* ldns_rr_mx_preference(const ldns_rr *r);

ldns_rdf* ldns_rr_mx_exchange(const ldns_rr *r);

Overview

ldns_rr_mx_preference() returns the mx pref. of a LDNS_RR_TYPE_MX rr .br r: the resource record .br Returns a ldns_rdf* with the preference or NULL on failure

ldns_rr_mx_exchange() returns the mx host of a LDNS_RR_TYPE_MX rr .br r: the resource record .br Returns a ldns_rdf* with the name of the MX host or NULL on failure

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–10
  5. 11–12
  6. 13–Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.