ldns(3)
π ldns(3) β the one where your zone spills the tea π
okay bestie, gather round, because today we're talking about ldns β that's the manual page for the ldns library, and specifically the two lil functions that let you peek inside an ldns_zone and see what's in there. it's giving backstage pass energy. π
β¨ NAME β¨
ldns_zone_rrs, ldns_zone_soa β ldns_zone get content π¦
like. the whole vibe is "what's actually inside this zone object". that's it. that's the job. π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ldns_rr_list * ldns_zone_rrs(const ldns_zone *z);
ldns_rr * ldns_zone_soa(const ldns_zone *z);
yes you need all four lines of includes, no you cannot skip them, i don't make the rules (i do not, in fact, make the rules) π«Ά
π DESCRIPTION π
ldns_zone_rrs()
Get a list of a zone's content. iconic. obsessed. π
β οΈ but bestie, listen β the SOA is NOT included in this list. it's not there. it said "not me". so if you're looking for the SOA in this list you will be looking forever and that is a you problem (affectionate).
if you want the SOA you need to go get it with ldns_zone_soa. that's literally its whole thing. π€
zβ the zone to read from- Returns the rrs from this zone
ldns_zone_soa()
Return the soa record of a zone. the main character of every zone, honestly. π
zβ the zone to read from- Returns the soa record in the zone
so: one function gets you the whole pile of rrs (minus the SOA), the other one gets you the SOA specifically. two functions, zero overlap, no notes. β¨
π«Ά AUTHOR π«Ά
The ldns team at NLnet Labs. legends, fr fr. π
π REPORTING BUGS π
found something cursed? please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β they want to know, do not suffer in silence bestie πβ¨
π 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.
that's a big dramatic NO and they mean it. no warranty. none. not even the obvious ones. π
π SEE ALSO π
ldns_zone ldns_zone_set_rrs.
And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. iykyk π
π REMARKS π
This manpage was automatically generated from the ldns source code. so if the vibes are a little stiff in places, blame the generator, not the team. π€π
and that's the whole page, bestie!! this was ldns(3), dated 30 May 2006, from the ldns library functions manual. go forth, read your zones, respect the SOA's independent streak. slay. πβ¨ππ¦πΈπ
π«Ά
π¦ 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