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 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 on
    • nr: 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 the rd_count of 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 (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 πŸ’…πŸ”₯