getdns_root_trust_anchor(3)
π getdns_root_trust_anchor π
okay bestie, so you know how libgetdns is the DNS resolver library? yeah. this is one of its little helper functions and it's lowkey important if you're doing DNSSEC stuff. it lives in the DNS Resolver library, aka libgetdns, and you link it with -lgetdns. π
β¨ NAME β¨
getdns_root_trust_anchor β the function that hands you back the getdns list of default root trust anchors. that's it. that's the vibe. π
π LIBRARY π
DNS Resolver library (libgetdns, -lgetdns) β she's the whole reason we're here, no cap. π¦
πΈ SYNOPSIS πΈ
#include <getdns.h>
getdns_list *
getdns_root_trust_anchor (time_t *utc_date_of_anchor)
like look at her. one include, one function, one pointer argument. she's giving minimal main character energy and honestly? iconic. π
π« DESCRIPTION π«
so here's the situation, bestie. if an application wants the API to do DNSSEC validation without using the extensions, it can just use the getdns_validate_dnssec() helper function. easy. that's the move. β¨
and then the way it all comes together: the API is gonna use the resource records inside bundle_of_support_records to construct the validation chain, and it uses the DNSKEY or DS records inside trust_anchor_records as the trust anchors. that's the whole recipe fr fr. π
now β the default list of trust anchor records that the library uses to validate DNSSEC? that's exactly what you get when you call the getdns_root_trust_anchor helper function. she just hands it over. π«Ά
- utc_date_of_anchor β the time the trust anchors were obtained, in epoch seconds (this one's on success, so don't come for her if it's empty otherwise π)
π RETURN VALUES π
she returns the default list of trust anchor records used by the library to validate DNSSEC. and if there are no default trust anchors available? you get NULL. that's the whole story. π
π EXAMPLES π
TBD π
bestie they literally just wrote TBD and moved on. we love a mysterious queen. π
π SEE ALSO π
go read those too, iykyk. π₯
mwah π that's the page. this one's from getdns 1.7.3, dated December 2015 β oldie but a goodie, and yes she still ate. periodt. π β¨
π¦ where this page comes from
- alpine 3.24: getdns-doc 1.7.3-r0 Β· BSD-3-Clause
- arch rolling: getdns 1.7.3-2 Β· BSD
- epel 10: getdns-devel 1.7.3-9.el10_2 Β· BSD-3-Clause
- epel 9: getdns-devel 1.7.3-1.el9 Β· BSD-3-Clause
- fedora 43: getdns-devel 1.7.3-9.fc43 Β· BSD-3-Clause
- fedora 43: getdns-devel 1.7.3-9.fc43 Β· BSD-3-Clause
- fedora 44: getdns-devel 1.7.3-10.fc44 Β· BSD-3-Clause
- fedora 44: getdns-devel 1.7.3-10.fc44 Β· BSD-3-Clause
- nixpkgs unstable: getdns 1.7.3
- ubuntu resolute: libgetdns-dev 1.7.3-3 Β· BSD-3-Clause
- ubuntu stonking: libgetdns-dev 1.7.3-5build1 Β· BSD-3-Clause
- Copyright (c) 2013, NLnet Labs, Verisign, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms