ldns(3)
π ldns β the RRSIG getters & setters era π
okay so bestie, welcome to the ldns(3) manual page π β it's a Library Functions Manual situation and it's all about get and set RRSIG RR rdata fields. like, every single field of an RRSIG record has a lil getter and a lil setter and we're gonna go through all of them together, no skips, no shortcuts, we eat the whole plate π
β¨ NAME β¨
ldns_rr_rrsig_typecovered, ldns_rr_rrsig_set_typecovered, ldns_rr_rrsig_algorithm, ldns_rr_rrsig_set_algorithm, ldns_rr_rrsig_labels, ldns_rr_rrsig_set_labels, ldns_rr_rrsig_origttl, ldns_rr_rrsig_set_origttl, ldns_rr_rrsig_expiration, ldns_rr_rrsig_set_expiration, ldns_rr_rrsig_inception, ldns_rr_rrsig_set_inception, ldns_rr_rrsig_keytag, ldns_rr_rrsig_set_keytag, ldns_rr_rrsig_signame, ldns_rr_rrsig_set_signame, ldns_rr_rrsig_sig, ldns_rr_rrsig_set_sig β get and set RRSIG RR rdata fields π
π¦ SYNOPSIS π¦
okay so first you gotta include the girlies:
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
and then, here's the whole friend group, in order, no one left behind:
ldns_rdf* ldns_rr_rrsig_typecovered(const ldns_rr *r);
bool ldns_rr_rrsig_set_typecovered(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_algorithm(const ldns_rr *r);
bool ldns_rr_rrsig_set_algorithm(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_labels(const ldns_rr *r);
bool ldns_rr_rrsig_set_labels(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_origttl(const ldns_rr *r);
bool ldns_rr_rrsig_set_origttl(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_expiration(const ldns_rr *r);
bool ldns_rr_rrsig_set_expiration(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_inception(const ldns_rr *r);
bool ldns_rr_rrsig_set_inception(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_keytag(const ldns_rr *r);
bool ldns_rr_rrsig_set_keytag(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_signame(const ldns_rr *r);
bool ldns_rr_rrsig_set_signame(ldns_rr *r, ldns_rdf *f);
ldns_rdf* ldns_rr_rrsig_sig(const ldns_rr *r);
bool ldns_rr_rrsig_set_sig(ldns_rr *r, ldns_rdf *f);
πΈ DESCRIPTION πΈ
so here's the tea π« β every getter hands you back an ldns_rdf* (or NULL if it flops π), and every setter takes your ldns_rr *r plus the ldns_rdf *f you wanna set, and tells you true on success or false otherwise. that's the whole pattern, it's giving consistency, it's giving reliable queen behavior π
π ldns_rr_rrsig_typecovered()
returns the type covered of a LDNS_RR_TYPE_RRSIG rr.
r: the resource record- Returns a
ldns_rdf*with the type covered orNULLon failure
π ldns_rr_rrsig_set_typecovered()
sets the typecovered of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the typecovered to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_algorithm()
returns the algorithm of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the algorithm orNULLon failure
π ldns_rr_rrsig_set_algorithm()
sets the algorithm of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the algorithm to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_labels()
returns the number of labels of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the number of labels orNULLon failure
π ldns_rr_rrsig_set_labels()
sets the number of labels of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the number of labels to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_origttl()
returns the original TTL of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the original TTL orNULLon failure
π ldns_rr_rrsig_set_origttl()
sets the original TTL of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the original TTL to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_expiration()
returns the expiration time of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the expiration time orNULLon failure
π ldns_rr_rrsig_set_expiration()
sets the expiration date of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the expiration date to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_inception()
returns the inception time of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the inception time orNULLon failure
π ldns_rr_rrsig_set_inception()
sets the inception date of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the inception date to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_keytag()
returns the keytag of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the keytag orNULLon failure
π ldns_rr_rrsig_set_keytag()
sets the keytag of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the keytag to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_signame()
returns the signers name of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the signers name orNULLon failure
π ldns_rr_rrsig_set_signame()
sets the signers name of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the signers name to set- Returns
trueon success,falseotherwise
π ldns_rr_rrsig_sig()
returns the signature data of a LDNS_RR_TYPE_RRSIG RR.
r: the resource record- Returns a
ldns_rdf*with the signature data orNULLon failure
π ldns_rr_rrsig_set_sig()
sets the signature data of a LDNS_RR_TYPE_RRSIG rr.
r: the rr to usef: the signature data to set- Returns
trueon success,falseotherwise
π AUTHOR π
The ldns team at NLnet Labs. absolute icons, fr fr π
π REPORTING BUGS π
found a bug bestie?? π please report it to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β they wanna know, no gatekeeping π«Ά
π 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.
okay so this is important β NO warranty, like none, zero, not even the merchantability or fitness-for-a-particular-purpose kind π so use it responsibly bestie.
π SEE ALSO π
perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. go read them, they're lowkey required reading iykyk πβ¨
π REMARKS π
This manpage was automatically generated from the ldns source code. (yes, the robots wrote it, and yes, they ate π )
and that's the whole thing babes π this ldns(3) page is from the Library Functions Manual, dated 30 May 2006, from the ldns crew β mwah, go set some RRSIG fields, you've got this πΈπ¦π
π¦ 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