1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_dname_new, ldns_dname_new_frm_str, ldns_dname_new_frm_data - cre‐
7       ate a dname
8
9

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

42       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
43       Miek Gieben.
44
45

REPORTING BUGS

47       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
48       http://www.nlnetlabs.nl/bugs/index.html
49
50
52       Copyright (c) 2004 - 2006 NLnet Labs.
53
54       Licensed under the BSD License. There is NO warranty; not even for MER‐
55       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
56
57

SEE ALSO

59       ldns_pkt_query_new_frm_str, ldns_rdf_new_frm_str, ldns_rr_new_frm_str.
60       And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034  and RFC4035.
61

REMARKS

63       This manpage was automatically generated from the ldns source code by
64       use of Doxygen and some perl.
65
66
67
68                                  30 May 2006                          ldns(3)
Impressum