getdns_validate_dnssec(3)
β¨ getdns_validate_dnssec(3) β¨
okay bestie, so this is a page from the getdns manual, section 3, and it's all about getdns_validate_dnssec. let's get into it π
πΈ NAME πΈ
getdns_validate_dnssec β DNSSEC validate a given getdns record. like, it checks the vibes of a record's DNSSEC situation. no cap.
π LIBRARY π
DNS Resolver library (libgetdns, -lgetdns) β she lives in the getdns resolver library, link her with -lgetdns.
π SYNOPSIS π
#include <getdns.h>
getdns_return_t
getdns_validate_dnssec (getdns_list *record_to_validate,
getdns_list *bundle_of_support_records,
getdns_list *trust_anchor_records)
π¦ DESCRIPTION π¦
so here's the tea π: if your app wants the API to do the DNSSEC validation thing without touching the extensions, you can just call the getdns_validate_dnssec() helper function. that's literally what she's here for.
the API will take the resource records hanging out in bundle_of_support_records and use them to construct the validation chain. then it takes the DNSKEY or DS records chillin' in trust_anchor_records and uses those as the trust anchors. iconic behaviour, honestly π
and if you want the default list of trust anchor records β the one the library itself uses to validate DNSSEC β you can grab it with the getdns_root_trust_anchor helper function. free of charge, no cap. π«Ά
record_to_validateβ the resource record being validated. the main character, if you will. πbundle_of_support_recordsβ records used to construct the validation chain. the support squad. πͺtrust_anchor_recordsβ trust anchor records to use for the validation. the ones we actually trust, fr fr. π
π₯ RETURN VALUES π₯
GETDNS_DNSSEC_BOGUSβ the DNSSEC signature is bogus. π not it. not it at all.GETDNS_DNSSEC_INDETERMINATEβ validation could not be completed. we simply don't know, bestie. π€·GETDNS_DNSSEC_INSECUREβ one or more pieces of the validation chain are demonstrably incorrect. the chain is giving broken. πGETDNS_DNSSEC_SECUREβ validation succeeded. slay! periodt. πβ¨GETDNS_RETURN_MEMORY_ERRORβ an attempt to allocate memory failed. she ran out of room, poor thing. π₯Ί
π EXAMPLES π
TBD β yeah bestie, that's literally all it says. the examples are TBD. we wait. π§
π SEE ALSO π
and that's the whole page, bestie π this was getdns 1.7.3, dated December 2015 β an absolute icon of a release, we love her, mwah ππ
π¦ 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