ldns_dname_new(3)

ldns_dname_new3

Create a dname

Usage

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

#include <ldns/ldns.h>

ldns_rdf* ldns_dname_new(uint16_t s, void *data);

ldns_rdf* ldns_dname_new_frm_str(const char *str);

ldns_rdf* ldns_dname_new_frm_data(uint16_t size, const void *data);

Overview

ldns_dname_new() Create a new dname rdf from a string. The data pointer is stored in the rdf, not a copy of the data .br s: the size of the new dname .br *data: pointer to the actual data

.br Returns ldns_rdf*

ldns_dname_new_frm_str() creates a new dname rdf from a string. .br str: string to use .br Returns ldns_rdf* or NULL in case of an error

ldns_dname_new_frm_data() Create a new dname rdf from data (the data is copied) .br size: the size of the data .br *data: pointer to the actual data

.br Returns ldns_rdf*

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.