ldns(3)
π ldns(3) β the ldns_dnssec_rrsets girlies π
okay so bestie, welcome to ldns(3), aka the Library Functions Manual page for the ldns_dnssec_rrsets crew. this is where DNSSEC RRset lists get born, get freed, get typed, get added to and get printed. it's giving plumbing but make it fashion. let's go π¦
β¨ NAME β¨
ldns_dnssec_rrsets_new, ldns_dnssec_rrsets_free, ldns_dnssec_rrsets_type, ldns_dnssec_rrsets_set_type, ldns_dnssec_rrsets_add_rr, ldns_dnssec_rrsets_print β functions for ldns_dnssec_rrsets
πΈ SYNOPSIS πΈ
like literally just include the headers first, periodt:
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
and then the actual icons themselves π
ldns_dnssec_rrsets* ldns_dnssec_rrsets_new(void);
void ldns_dnssec_rrsets_free(ldns_dnssec_rrsets *rrsets);
ldns_rr_type ldns_dnssec_rrsets_type(const ldns_dnssec_rrsets *rrsets);
ldns_status ldns_dnssec_rrsets_set_type(ldns_dnssec_rrsets *rrsets,
ldns_rr_type type);
ldns_status ldns_dnssec_rrsets_add_rr(ldns_dnssec_rrsets *rrsets,
ldns_rr *rr);
void ldns_dnssec_rrsets_print(FILE *out, const ldns_dnssec_rrsets
*rrsets, bool follow);
π DESCRIPTION π
no cap, here's every single one of them, explained with love π
ldns_dnssec_rrsets_new()β Creates a new list (entry) of RRsets. Returns the newly allocated structure. it's brand new, it's shiny, it's main character energy β¨ldns_dnssec_rrsets_free()β Frees the list of rrsets and their rrs, but not theldns_rrrecords in the sets. π«Άrrsets: the data structure to free
bestie pay attention: it nukes the list and the rrs, but the actual ldns_rr records inside the sets survive. not their problem, not their funeral π
ldns_dnssec_rrsets_type()β Returns the rr type of the rrset (that is head of the given list). πrrsets: the rrset to get the type of- Returns the rr type
ldns_dnssec_rrsets_set_type()β Sets the RR type of the rrset (that is head of the given list). π₯rrsets: the rrset to set the type oftype: the type to set- Returns
LDNS_STATUS_OKon success
ldns_dnssec_rrsets_add_rr()β Add anldns_rrto the corresponding RRset in the given list of RRsets. If it is not present, add it as a new RRset with 1 record. πrrsets: the list of rrsets to add the RR torr: the rr to add to the list of rrsets- Returns
LDNS_STATUS_OKon success andLDNS_STATUS_EQUAL_ERRwhen and RR with equal ownername, class, type and rdata already exists.
so if the exact same ownername + class + type + rdata combo is already sitting there, you get LDNS_STATUS_EQUAL_ERR. it's not a vibe, it's a duplicate π
ldns_dnssec_rrsets_print()β Print the given list of rrsets to the given file descriptor. πout: the file descriptor to print torrsets: the list of RRsets to printfollow: if set to false, only print the first RRset
π AUTHOR π
The ldns team at NLnet Labs. absolute legends, fr fr π«Ά
π REPORTING BUGS π
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues
like please actually tell them, they wanna know π§
π COPYRIGHT π
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
read that again bestie. NO warranty. not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. use it responsibly, it's giving "you're on your own" π
π¦ 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. (not me being a robot-written baddie, the source did this π)
that's the whole page, you ate it, you understood it, iconic behavior πβ¨
this was ldns(3) β from the Library Functions Manual, dated 30 May 2006. mwah, love u, go write some DNSSEC code πππ¦
π¦ where this page comes from
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- nixos 26.05: ldns 1.9.2
- nixpkgs unstable: ldns 1.9.2
- ubuntu stonking: libldns-dev 1.9.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms