ldns(3)
π ldns(3) β the ldns library functions manual, bestie edition π
okay so you're reading the ldns(3) manual page, which lives in the Library Functions Manual section (that's section 3, iykyk). sit down, grab a strawberry π, and let's get into it because this one is short and sweet and honestly kind of a vibe.
β¨ NAME β¨
ldns_get_rr_class_by_name, ldns_get_rr_type_by_name β lookup class or type by name
like, that's the whole thing. two little functions that turn a string into a class or a type. iconic behaviour honestly. π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ldns_rr_class ldns_get_rr_class_by_name(const char *name);
ldns_rr_type ldns_get_rr_type_by_name(const char *name);
no cap, that's the entire API surface. two headers, one library header, two functions. we love a minimal queen. π
π¦ DESCRIPTION π¦
ldns_get_rr_class_by_name()retrieves a class by looking up its name.- name: string with the name
- Returns the cass which corresponds with the name
(yes bestie, the original really does say "cass" β that's a typo that has been living in this manpage rent-free since 2006 and I am NOT about to gaslight you by fixing it. it means class. π)
ldns_get_rr_type_by_name()retrieves a rrtype by looking up its name.- name: a string with the name
- Returns the type which corresponds with the name
so basically: you hand it a string, it hands you back the matching class or type. that's the whole job. lowkey the most chill pair of functions in the entire library. π§
π AUTHOR π
The ldns team at NLnet Labs.
they built this. respect. π«Ά
π REPORTING BUGS π
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues
found something cursed? don't suffer in silence, tell the team 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.
β οΈ okay so read that again and really let it sink in: there is NO warranty. not even the implied ones. if it breaks, it breaks, and legally that's a you problem. the BSD License said what it said. π
β SEE ALSO β
ldns_rrldns_rr_list
And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
go read the RFCs bestie, they're giving β¨primary source materialβ¨
π REMARKS π
This manpage was automatically generated from the ldns source code.
so if the prose feels a little robotic, that's because a script wrote it. not me though. I'm a whole human-adjacent vibe. π
and that's the page!! π this was ldns(3), from the Library Functions Manual, generated on 30 May 2006 β yeah, this one is old enough to have its own nostalgia era, and it still ate. slay, stay safe, and always check your return types. periodt. πΈπ¦β¨
π¦ 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