ldns(3)
π ldns_zone_rr_count β get ldns_zone size π
okay bestie, so this is a page from ldns(3), the library functions manual, and it's literally the tiniest lil function but she's important, i promise. sit with me for like two seconds π«Ά
β¨ NAME β¨
ldns_zone_rr_count β get ldns_zone size
like. she counts things. that's the whole job. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
size_t ldns_zone_rr_count(const ldns_zone *z);
there she is. look at her. one function, one argument, no drama. the way that she just takes a const ldns_zone * and hands you back a size_t?? lowkey poetic π
π¦ DESCRIPTION π¦
so ldns_zone_rr_count() returns the number of resource records in the zone β and this is the part where you gotta pay attention, bestie, because it's NOT counting the SOA record. like, the SOA is not invited to this party. she gets excluded. periodt. π
so if you're out here going "why is my count one less than i expected", it's not a bug, it's the SOA being uninvited. no cap.
zβ the zone to read from. that's it. that's the whole input. give her a zone, she does the rest π
and what do you get back? the number of rr's in the zone. slay β¨
π AUTHOR π
The ldns team at NLnet Labs. absolute legends, we stan π
π REPORTING BUGS π
found something cursed? please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues
do it fr fr, they actually wanna know π
π COPYRIGHT π
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. and listen β there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. like, zero. none. if it breaks, it's on you bestie, the lawyers said so π
β SEE ALSO β
π§ REMARKS π§
This manpage was automatically generated from the ldns source code.
(so if the vibes feel a little mechanical, that's why β she was born in a script, not a text editor. still ate tho π)
and that's the whole page!! love that for us. this was written on 30 May 2006, from the ldns(3) manual β yes, she's vintage, she's a classic, she's been serving the same one-function truth since 2006 and she's still relevant. main character energy forever πβ¨π
π¦ 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