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 β€” the DNSKEY rdata getter/setter situation πŸ’–

okay bestie, welcome to the ldns page, specifically the lil family of functions that get and set the rdata fields on a DNSKEY RR. That's ldns_rr_dnskey_flags, ldns_rr_dnskey_set_flags, ldns_rr_dnskey_protocol, ldns_rr_dnskey_set_protocol, ldns_rr_dnskey_algorithm, ldns_rr_dnskey_set_algorithm, ldns_rr_dnskey_key and ldns_rr_dnskey_set_key. Eight icons, one job: get and set DNSKEY RR rdata fields. no cap. πŸŽ€


✨ SYNOPSIS ✨

like, this is literally how you summon them:

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_rdf* ldns_rr_dnskey_flags(const ldns_rr *r);

bool ldns_rr_dnskey_set_flags(ldns_rr *r, ldns_rdf *f);

ldns_rdf* ldns_rr_dnskey_protocol(const ldns_rr *r);

bool ldns_rr_dnskey_set_protocol(ldns_rr *r, ldns_rdf *f);

ldns_rdf* ldns_rr_dnskey_algorithm(const ldns_rr *r);

bool ldns_rr_dnskey_set_algorithm(ldns_rr *r, ldns_rdf *f);

ldns_rdf* ldns_rr_dnskey_key(const ldns_rr *r);

bool ldns_rr_dnskey_set_key(ldns_rr *r, ldns_rdf *f);

🌸 DESCRIPTION 🌸

so basically, four fields on a LDNS_RR_TYPE_DNSKEY rr, and for each one there's a getter (gives you back an ldns_rdf*) and a setter (gives you back a bool). Getters return NULL if things go sideways, setters return true on success and false otherwise. that's the whole vibe check. πŸ¦‹

πŸ’… the flags situation

  • ldns_rr_dnskey_flags() β€” hands you the flags of a LDNS_RR_TYPE_DNSKEY rr.
    • r: the resource record
    • Returns an ldns_rdf* with the flags, or NULL on failure. 😭
  • ldns_rr_dnskey_set_flags() β€” sets the flags on a LDNS_RR_TYPE_DNSKEY rr.
    • r: the rr to use
    • f: the flags to set
    • Returns true on success, false otherwise.

πŸŽ€ the protocol situation

  • ldns_rr_dnskey_protocol() β€” hands you the protocol of a LDNS_RR_TYPE_DNSKEY rr.
    • r: the resource record
    • Returns an ldns_rdf* with the protocol, or NULL on failure.
  • ldns_rr_dnskey_set_protocol() β€” sets the protocol on a LDNS_RR_TYPE_DNSKEY rr.
    • r: the rr to use
    • f: the protocol to set
    • Returns true on success, false otherwise.

✨ the algorithm situation

  • ldns_rr_dnskey_algorithm() β€” hands you the algorithm of a LDNS_RR_TYPE_DNSKEY rr.
    • r: the resource record
    • Returns an ldns_rdf* with the algorithm, or NULL on failure.
  • ldns_rr_dnskey_set_algorithm() β€” sets the algorithm on a LDNS_RR_TYPE_DNSKEY rr.
    • r: the rr to use
    • f: the algorithm to set
    • Returns true on success, false otherwise.

πŸ”₯ the key data situation (the main character fr fr)

  • ldns_rr_dnskey_key() β€” hands you the key data of a LDNS_RR_TYPE_DNSKEY rr.
    • r: the resource record
    • Returns an ldns_rdf* with the key data, or NULL on failure.
  • ldns_rr_dnskey_set_key() β€” sets the key data on a LDNS_RR_TYPE_DNSKEY rr.
    • r: the rr to use
    • f: the key data to set
    • Returns true on success, false otherwise.

πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. absolute legends, we stan. 🫢


πŸ› REPORTING BUGS πŸ›

found something cursed? pls report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β€” they wanna know, fr fr.


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. like, zero. none. don't come for them. πŸ’€


🌈 SEE ALSO 🌈

ldns_rr. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. iykyk. ⭐


πŸ™ˆ REMARKS πŸ™ˆ

This manpage was automatically generated from the ldns source code. (not me getting a whole glow-up from a code generator 😭)


okay that's the whole page bestie, you ate it up πŸ’…

this was the ldns(3) Library Functions Manual page, dated 30 May 2006 β€” mwah, iconic, no notes. πŸŽ€βœ¨