ldns(3)
π 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 aLDNS_RR_TYPE_DNSKEYrr.- r: the resource record
- Returns an
ldns_rdf*with the flags, orNULLon failure. π
ldns_rr_dnskey_set_flags()β sets the flags on aLDNS_RR_TYPE_DNSKEYrr.- r: the rr to use
- f: the flags to set
- Returns
trueon success,falseotherwise.
π the protocol situation
ldns_rr_dnskey_protocol()β hands you the protocol of aLDNS_RR_TYPE_DNSKEYrr.- r: the resource record
- Returns an
ldns_rdf*with the protocol, orNULLon failure.
ldns_rr_dnskey_set_protocol()β sets the protocol on aLDNS_RR_TYPE_DNSKEYrr.- r: the rr to use
- f: the protocol to set
- Returns
trueon success,falseotherwise.
β¨ the algorithm situation
ldns_rr_dnskey_algorithm()β hands you the algorithm of aLDNS_RR_TYPE_DNSKEYrr.- r: the resource record
- Returns an
ldns_rdf*with the algorithm, orNULLon failure.
ldns_rr_dnskey_set_algorithm()β sets the algorithm on aLDNS_RR_TYPE_DNSKEYrr.- r: the rr to use
- f: the algorithm to set
- Returns
trueon success,falseotherwise.
π₯ the key data situation (the main character fr fr)
ldns_rr_dnskey_key()β hands you the key data of aLDNS_RR_TYPE_DNSKEYrr.- r: the resource record
- Returns an
ldns_rdf*with the key data, orNULLon failure.
ldns_rr_dnskey_set_key()β sets the key data on aLDNS_RR_TYPE_DNSKEYrr.- r: the rr to use
- f: the key data to set
- Returns
trueon success,falseotherwise.
π 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 π
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. πβ¨
π¦ 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