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(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 (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. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά