ldns_key2str(3)

ldns_key2str3

Functions for conversions to string

Usage

#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);

Overview

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

.br rr: The rdata field to convert .br 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.

.br pkt: The rdata field to convert .br 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.

.br rdf: The rdata field to convert .br 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.

.br rr_list: the rr_list to convert to text .br 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.

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

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–10
  5. 11–12
  6. 13–Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.