carta
ldns_dnssec_zone_new(3)

ldns_dnssec_zone_new3

Functions for ldns_dnssec_zone

Usage

void ldns_dnssec_zone_free(ldns_dnssec_zone *zone);

ldns_status ldns_dnssec_zone_add_rr(ldns_dnssec_zone *zone, ldns_rr *rr);

void ldns_dnssec_zone_names_print(FILE *out, const ldns_rbtree_t *tree, bool print_soa);

void ldns_dnssec_zone_print(FILE *out, const ldns_dnssec_zone *zone);

ldns_status ldns_dnssec_zone_add_empty_nonterminals(ldns_dnssec_zone *zone);

Overview

ldns_dnssec_zone_find_rrset() Find the RRset with the given name and type in the zone

.br zone: the zone structure to find the RRset in .br dname: the domain name of the RRset to find .br type: the type of the RRset to find .br Returns the RRset, or NULL if not present

ldns_dnssec_zone_new() Creates a new dnssec_zone structure .br Returns the allocated structure

ldns_dnssec_zone_free() Frees the given zone structure, and its rbtree of dnssec_names Individual ldns_rr RRs within those names are *not* freed .br *zone: the zone to free

ldns_dnssec_zone_add_rr() Adds the given RR to the zone. It find whether there is a dnssec_name with that name present. If so, add it to that, if not create a new one. Special handling of NSEC and RRSIG provided

.br zone: the zone to add the RR to .br rr: The RR to add .br Returns LDNS_STATUS_OK on success and LDNS_STATUS_EQUAL_ERR when and RR with equal ownername, class, type and rdata already exists, and an error code otherwise

ldns_dnssec_zone_names_print() Prints the rbtree of ldns_dnssec_name structures to the file descriptor

.br out: the file descriptor to print the names to .br tree: the tree of ldns_dnssec_name structures to print .br print_soa: if true, print SOA records, if false, skip them

ldns_dnssec_zone_print() Prints the complete zone to the given file descriptor

.br out: the file descriptor to print to .br zone: the dnssec_zone to print

ldns_dnssec_zone_add_empty_nonterminals() Adds explicit dnssec_name structures for the empty nonterminals in this zone. (this is needed for NSEC3 generation)

.br zone: the zone to check for empty nonterminals return LDNS_STATUS_OK on success.

Remarks

This manpage was automatically generated from the ldns source code.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm) to Debian 11 (Bullseye)
  • Debian 10 (Buster) to Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy) to Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)

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.