ldns(3)

πŸ“¦
version 1.9.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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 πŸ’–βœ¨πŸŽ€