getdns_validate_dnssec(3)

πŸ“¦
version 1.7.3 Β· 2 versions
, in alpine 3.24, arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’œπŸ’