ldns_dnssec_zone_find_rrset - Man Page

functions for ldns_dnssec_zone

Synopsis

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

#include <ldns/ldns.h>

ldns_dnssec_rrsets* ldns_dnssec_zone_find_rrset(const ldns_dnssec_zone *zone, const ldns_rdf *dname, ldns_rr_type type);

ldns_dnssec_zone* ldns_dnssec_zone_new(void);

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

Description

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

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

ldns_dnssec_zone_new() Creates a new dnssec_zone structure
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
*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

zone: the zone to add the RR to
rr: The RR to add
Returns LDNS_STATUS_OK on success, an error code otherwise

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

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

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

out: the file descriptor to print to
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)

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

Author

The ldns team at NLnet Labs.

Reporting Bugs

Please report bugs to ldns-team@nlnetlabs.nl or in  our bugzilla at http://www.nlnetlabs.nl/bugs/index.html

See Also

ldns_dnssec_zone. 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_dnssec_zone_add_empty_nonterminals(3), ldns_dnssec_zone_add_rr(3), ldns_dnssec_zone_free(3), ldns_dnssec_zone_names_print(3), ldns_dnssec_zone_new(3) and ldns_dnssec_zone_print(3) are aliases of ldns_dnssec_zone_find_rrset(3).

30 May 2006