ldns(3)

πŸ“¦
version 1.9.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ldns(3) β€” the bestie edition πŸ’–

okay so this is a page from the ldns library functions manual, and bestie, it's literally just two little functions that do the classic DNS glow-up: name ➑️ address, and address ➑️ name. That's it. That's the whole vibe. πŸ¦‹


✨ NAME ✨

ldns_get_rr_list_addr_by_name, ldns_get_rr_list_name_by_addr β€” get addresses by name or names by address πŸŽ€


🌸 SYNOPSIS 🌸

no cap, here's the exact include situation:

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_rr_list* ldns_get_rr_list_addr_by_name(ldns_resolver *r, const
ldns_rdf *name, ldns_rr_class c, uint16_t flags);

ldns_rr_list* ldns_get_rr_list_name_by_addr(ldns_resolver *r, const
ldns_rdf *addr, ldns_rr_class c, uint16_t flags);

πŸ‘‘ DESCRIPTION πŸ‘‘

ldns_get_rr_list_addr_by_name() πŸ’…

the way that this one just asks the resolver about name and returns all address records… iconic. periodt.

  • r β€” the resolver to use πŸ”
  • name β€” the name to look for ✨
  • c β€” the class to use 🌈
  • flags β€” give some optional flags to the query πŸŽ€

ldns_get_rr_list_name_by_addr() πŸ¦‹

and this one? it asks the resolver about the address and returns the name. reverse-lookup main character energy, fr fr. 😭

  • r β€” the resolver to use πŸ”
  • addr β€” the addr to look for ✨
  • c β€” the class to use 🌈
  • flags β€” give some optional flags to the query πŸŽ€

🌟 AUTHOR 🌟

The ldns team at NLnet Labs. (genuinely so talented, we stan 🫢)


πŸ’€ REPORTING BUGS πŸ’€

found a lil oopsie? not me gatekeeping bug reports. please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues πŸ™ˆ


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. 😭 (yes bestie, that's the legal way of saying "we told you so in all caps")


πŸ“ SEE ALSO πŸ“

  • ldns_rr_list
  • ldns_rr

And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. iykyk πŸ“š


🧚 REMARKS 🧚

This manpage was automatically generated from the ldns source code. (so if it's a little stiff, that's why β€” not us, we're doing great πŸ’…)


and that's the whole page, bestie! 🌸 written up on 30 May 2006 for ldns(3) β€” slay, stay safe, and always check your exit codes. mwah πŸ«ΆπŸ’–