dns_name_packet(3)
β¨ 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 ππ¦
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms