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

NAME

6       ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str
7       - functions for conversions to string
8
9

SYNOPSIS

11       #include <stdint.h>
12       #include <stdbool.h>
13
14       #include <ldns/ldns.h>
15
16       char* ldns_rr2str(const ldns_rr *rr);
17
18       char* ldns_pkt2str(const ldns_pkt *pkt);
19
20       char* ldns_rdf2str(const ldns_rdf *rdf);
21
22       char* ldns_rr_list2str(const ldns_rr_list *rr_list);
23
24       char* ldns_key2str(const ldns_key *k);
25

DESCRIPTION

27       ldns_rr2str() Converts the data in the resource record to presentation
28              format and returns that as a char *.  Remember to free it.
29
30              rr: The rdata field to convert
31              Returns null terminated char * data, or NULL on error
32
33       ldns_pkt2str() Converts the data in the DNS packet to presentation for‐
34              mat and returns that as a char *.  Remember to free it.
35
36              pkt: The rdata field to convert
37              Returns null terminated char * data, or NULL on error
38
39       ldns_rdf2str() Converts the data in the rdata field to presentation
40              format and returns that as a char *.  Remember to free it.
41
42              rdf: The rdata field to convert
43              Returns null terminated char * data, or NULL on error
44
45       ldns_rr_list2str() Converts a list of resource records to presentation
46              format and returns that as a char *.  Remember to free it.
47
48              rr_list: the rr_list to convert to text
49              Returns null terminated char * data, or NULL on error
50
51       ldns_key2str() Converts a private key to the test presentation fmt and
52              returns that as a char *.  Remember to free it.
53
54              k: the key to convert to text
55              Returns null terminated char * data, or NULL on error
56

AUTHOR

58       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
59       Miek Gieben.
60
61

REPORTING BUGS

63       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
64       http://www.nlnetlabs.nl/bugs/index.html
65
66
68       Copyright (c) 2004 - 2006 NLnet Labs.
69
70       Licensed under the BSD License. There is NO warranty; not even for MER‐
71       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
72
73

SEE ALSO

75       ldns_rr_print, ldns_rdf_print, ldns_pkt_print, ldns_rr_list_print,
76       ldns_resolver_print, ldns_zone_print.  And perldoc Net::DNS, RFC1034,
77       RFC1035, RFC4033, RFC4034  and RFC4035.
78

REMARKS

80       This manpage was automatically generated from the ldns source code by
81       use of Doxygen and some perl.
82
83
84
85                                  30 May 2006                          ldns(3)
Impressum