ldns(3)
π ldns(3) β the ldns manual, bestie edition π
okay so welcome to the ldns(3) page, aka the library functions manual where we get to poke at ldns_rr structs and pull their little fields out one by one. this is the glow-up guide to reading rdata fields, no cap. π
β¨ NAME β¨
ldns_rr_rdf, ldns_rr_owner, ldns_rr_rd_count, ldns_rr_ttl, ldns_rr_get_class β access rdata fields on ldns_rr
likeβ¦ they're all just lil accessor girlies for your resource records. π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ldns_rdf* ldns_rr_rdf(const ldns_rr *rr, size_t nr);
ldns_rdf* ldns_rr_owner(const ldns_rr *rr);
size_t ldns_rr_rd_count(const ldns_rr *rr);
uint32_t ldns_rr_ttl(const ldns_rr *rr);
ldns_rr_class ldns_rr_get_class(const ldns_rr *rr);
look at those signatures. immaculate. β¨ copy them exactly, bestie, we do not freestyle headers in this house.
π¦ DESCRIPTION π¦
ldns_rr_rdf()returns the rdata field member counter. π*rr: rr to operate onnr: the number of the rdf to return- Returns
ldns_rdf *
ldns_rr_owner()returns the owner name of an rr structure. π*rr: rr to operate on- Returns
ldns_rdf *
ldns_rr_rd_count()returns therd_countof an rr structure. π’*rr: the rr to read from- Returns the rd count of the rr
ldns_rr_ttl()returns the ttl of an rr structure. β³*rr: the rr to read from- Returns the ttl of the rr
ldns_rr_get_class()returns the class of the rr. π·οΈ*rr: the rr to read from- Returns the class of the rr
the way that all of these just take one const ldns_rr * and hand you back a fieldβ¦ lowkey the most chill API ever. they don't mutate anything, they just read. main character energy tbh. π
π«Ά AUTHOR π«Ά
The ldns team at NLnet Labs.
(genuinely iconic of them. π)
π REPORTING BUGS π
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues
not me begging you to actually report the bugs instead of just yelling about them in the group chat π fr fr, they wanna hear it!!
π 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.
periodt. no warranty, no take-backs, no "but it worked on my machine". π
β SEE ALSO β
ldns_rr, ldns_rr_list. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
iykyk. go read the RFCs, bestie, they're the lore. πβ¨
π REMARKS π
This manpage was automatically generated from the ldns source code.
(so if a sentence sounds a lil stiffβ¦ yeah, a robot wrote the bones of it. we just gave it a wardrobe and a personality. π§)
and that's the whole page, slay!! this was the ldns(3) manual, generated from the ldns source, dated 30 May 2006 β shoutout to that lil timestamp at the bottom. bye bestie, go read some rdata fields π
π₯
π¦ 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