ldns(3)
π ldns(3) β the ldns_rr_list bestie page π
okay so bestie, welcome to the ldns(3) manual, aka the group chat where we talk about wrangling ldns_rr_lists. this is the library functions manual for ldns and we're gonna go through it together, no skimming, no cap. π¦
β¨ NAME β¨
ldns_rr_list_cat, ldns_rr_list_push_rr, ldns_rr_list_pop_rr β literally just ldns_rr_list manipulation, that's the whole vibe. π
πΈ SYNOPSIS πΈ
okay here's the part where you gotta pull in the right headers first, like putting on your outfit before you leave the house:
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
bool ldns_rr_list_cat(ldns_rr_list *left, const ldns_rr_list *right);
bool ldns_rr_list_push_rr(ldns_rr_list *rr_list, const ldns_rr *rr);
ldns_rr* ldns_rr_list_pop_rr(ldns_rr_list *rr_list);
three functions, three signatures, all copied exactly, we do not play with the facts here. β¨
π DESCRIPTION π
π ldns_rr_list_cat() β the merge, the crossover episode
this one concatenates two ldns_rr_lists together. and listen, it modifies *left β like actually reaches in there, extends it, and adds the pointers from *right into it. so yeah, left is not coming out of this the same girl she was before. π
- left: the leftside
- right: the rightside
Returns a left with right concatenated to it. periodt.
π
ldns_rr_list_push_rr() β push it, push it
this pushes an rr onto an rrlist. adding to the squad, one rr at a time. π«Ά
- rr_list: the rr_list to push to
- rr: the rr to push
Returns false on error, otherwise true. so if you get a false back, something went wrong, and if you get true, slay.
π¦ ldns_rr_list_pop_rr() β the last one out
this pops the last rr off an rrlist. last in, first out, it's giving stack energy fr fr.
- rr_list: the rr_list to pop from
Returns NULL if there's nothing to pop (sad, empty list, we've all been there π). Otherwise it hands you the popped RR.
π AUTHOR π
The ldns team at NLnet Labs. iconic behavior, honestly. π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues. they wanna hear it, fr. π
β 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.
okay this part is serious, no jokes: there is genuinely no warranty. not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. it says it in all caps, so you know they mean it. π
π₯ SEE ALSO π₯
go check out ldns_rr, ldns_rr_list. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. required reading, iykyk. π
π§ REMARKS π§
This manpage was automatically generated from the ldns source code. so if it sounds a lil stiff in places, that's why β but not anymore, because now it's ours. π
and that's the whole page, bestie!! this was the ldns(3) manpage, dated 30 May 2006, from the ldns library functions manual β go forth and manipulate those rr_lists, you're gonna ate π
β¨π
π¦ where this page comes from
- alpine 3.22: ldns-doc 1.8.4-r0 Β· BSD-3-Clause
- alpine 3.23: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- alpine 3.24: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- debian trixie: libldns-dev 1.8.4-2+b1
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- 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
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: libldns-dev 1.8.4-2build1
- ubuntu resolute: libldns-dev 1.8.4-2build3
- 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