ldns(3)
π ldns(3) β Library Functions Manual π
okay so bestie, welcome to the ldns(3) page, the library functions manual, and today's main character is a lil function that counts stuff. yes. counting. it's giving tiny-but-mighty. β¨
πΈ NAME πΈ
ldns_rr_label_count β return ownername label count
like, it literally does what it says on the tin, no cap.
π SYNOPSIS π
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
uint8_t ldns_rr_label_count(const ldns_rr *rr);
look at that signature, so clean, so iconic. π
π¦ DESCRIPTION π¦
ldns_rr_label_count() counts the number of labels of the ownername. that's the whole vibe. it looks at an ownername and goes "hmm, how many labels you got, bestie?" and then tells you. periodt.
here's the breakdown, so you're never confused:
- rr: count the labels of this rr β that's the one and only thing you hand it.
- Returns the number of labels. π
that's it. that's the function. no hidden lore, no plot twist.
π AUTHOR π
The ldns team at NLnet Labs. absolute legends, we love them, 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
not me begging you to actually file the issue instead of just complaining in the group chat π they can't fix it if they don't know, fr 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 that's the scary-but-important part, so listen up: no warranty. none. not even the implied ones. it's giving "you're on your own, bestie," and we respect the honesty. π
π SEE ALSO π
ldns_rrldns_rr_list
And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
go read them, iykyk, they're the lore. πβ¨
β REMARKS β
This manpage was automatically generated from the ldns source code.
so if the prose is a little stiff, that's why β the robots wrote it. i just gave it a glow-up. π§
and that's the page, bestie!! this whole thing is ldns(3), dated 30 May 2006, and yes we're still obsessed with it in the year of our lord. mwah. πππΈπ¦β¨π
π
π¦ 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