dns_txt(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

dns_txt β€” look up TXT records. and yes bestie, you're reading the dns_txt(3) page from the Library Functions Manual πŸ’–

🌸 SYNTAX 🌸

#include <libowfat/dns.h>

int dns_txt(stralloc* out,stralloc* fqdn);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so dns_txt looks up TXT records for the fully-qualified domain name in fqdn. It puts the concatenation of the TXT records into out and returns 0. If the domain does not exist in DNS, or has no TXT records, out will be empty. no cap. πŸ’…

If dns_txt has trouble with the DNS lookup or runs out of memory, it returns -1, setting errno appropriately. It may or may not change out. so like, don't count on out staying the same, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, periodt. footer is just dns_txt(3), no extra source/version/date tea, so we out. bye bestie 🫢✨