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.
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 automatically generated from the ldns source code.
80
81
82
83                                  30 May 2006                          ldns(3)
Impressum