dns_name_packet(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_name_packet(3) β€” pull names out of a DNS answer packet. That’s the whole vibe, bestie. This one lives in the Library Functions Manual and it’s giving low-level DNS realness.


🌸 SYNTAX 🌸

#include <libowfat/dns.h>

int dns_name_packet(stralloc* out,const char* buf,
                    unsigned int len);

πŸ’– DESCRIPTION πŸ’–

okay so dns_name_packet is a low-level component of dns_name4, and it was designed to support asynchronous DNS lookups. no cap.

Here’s the tea, fr fr: it reads a DNS packet of length len from buf, extracts the first PTR record from the answer section of the packet, puts the result into out, and returns 0 or -1 the exact same way dns_name4 does. periodt. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


this page comes from the Library Functions Manual, and the footer just signs off as dns_name_packet(3) β€” no extra date/version energy, just that. bye bestie πŸ’–πŸ¦‹