1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_dname_new, ldns_dname_new_frm_str, ldns_dname_new_frm_data - cre‐
7 ate a dname
8
9
11 #include <stdint.h>
12 #include <stdbool.h>
13
14 #include <ldns/ldns.h>
15
16 ldns_rdf* ldns_dname_new(uint16_t s, void *data);
17
18 ldns_rdf* ldns_dname_new_frm_str(const char *str);
19
20 ldns_rdf* ldns_dname_new_frm_data(uint16_t size, const void *data);
21
23 ldns_dname_new() Create a new dname rdf from a string. The data pointer
24 is stored in the rdf, not a copy of the data
25 s: the size of the new dname
26 *data: pointer to the actual data
27
28 Returns ldns_rdf*
29
30 ldns_dname_new_frm_str() creates a new dname rdf from a string.
31 str: string to use
32 Returns ldns_rdf* or NULL in case of an error
33
34 ldns_dname_new_frm_data() Create a new dname rdf from data (the data is
35 copied)
36 size: the size of the data
37 *data: pointer to the actual data
38
39 Returns ldns_rdf*
40
42 The ldns team at NLnet Labs.
43
44
46 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
47 http://www.nlnetlabs.nl/bugs/index.html
48
49
51 Copyright (c) 2004 - 2006 NLnet Labs.
52
53 Licensed under the BSD License. There is NO warranty; not even for MER‐
54 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
55
56
58 ldns_pkt_query_new_frm_str, ldns_rdf_new_frm_str, ldns_rr_new_frm_str.
59 And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
60
62 This manpage was automatically generated from the ldns source code.
63
64
65
66 30 May 2006 ldns(3)