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

NAME

6       ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str
7
8

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

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

REPORTING BUGS

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

SEE ALSO

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

REMARKS

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