1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_rr_mx_preference, ldns_rr_mx_exchange - get MX RR rdata fields
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ldns_rdf* ldns_rr_mx_preference(const ldns_rr *r);
16
17 ldns_rdf* ldns_rr_mx_exchange(const ldns_rr *r);
18
20 ldns_rr_mx_preference() returns the mx pref. of a LDNS_RR_TYPE_MX rr
21 r: the resource record
22 Returns a ldns_rdf* with the preference or NULL on failure
23
24 ldns_rr_mx_exchange() returns the mx host of a LDNS_RR_TYPE_MX rr
25 r: the resource record
26 Returns a ldns_rdf* with the name of the MX host or NULL on
27 failure
28
30 The ldns team at NLnet Labs.
31
32
34 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
35 http://www.nlnetlabs.nl/bugs/index.html
36
37
39 Copyright (c) 2004 - 2006 NLnet Labs.
40
41 Licensed under the BSD License. There is NO warranty; not even for MER‐
42 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43
45 perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
46
48 This manpage was automatically generated from the ldns source code.
49
50
51
52 30 May 2006 ldns(3)