ldns_rr2str - Man Page

functions for conversions to string

Synopsis

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

char* ldns_rr2str(const ldns_rr *rr);

char* ldns_pkt2str(const ldns_pkt *pkt);

char* ldns_rdf2str(const ldns_rdf *rdf);

char* ldns_rr_list2str(const ldns_rr_list *rr_list);

char* ldns_key2str(const ldns_key *k);

Description

ldns_rr2str() Converts the data in the resource record to presentation format and returns that as a char *. Remember to free it.

rr: The rdata field to convert
Returns null terminated char * data, or NULL on error

ldns_pkt2str() Converts the data in the DNS packet to presentation format and returns that as a char *. Remember to free it.

pkt: The rdata field to convert
Returns null terminated char * data, or NULL on error

ldns_rdf2str() Converts the data in the rdata field to presentation format and returns that as a char *. Remember to free it.

rdf: The rdata field to convert
Returns null terminated char * data, or NULL on error

ldns_rr_list2str() Converts a list of resource records to presentation format and returns that as a char *. Remember to free it.

rr_list: the rr_list to convert to text
Returns null terminated char * data, or NULL on error

ldns_key2str() Converts a private key to the test presentation fmt and returns that as a char *. Remember to free it.

k: the key to convert to text
Returns null terminated char * data, or NULL on error

Author

The ldns team at NLnet Labs.

Reporting Bugs

Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

See Also

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

Remarks

This manpage was automatically generated from the ldns source code.

Referenced By

The man pages ldns_key2str(3), ldns_pkt2str(3), ldns_rdf2str(3) and ldns_rr_list2str(3) are aliases of ldns_rr2str(3).

30 May 2006