1dns_name_packet(3)         Library Functions Manual         dns_name_packet(3)
2
3
4

NAME

6       dns_name_packet - extract names from DNS answer packet
7

SYNTAX

9       #include <dns.h>
10
11       int dns_name_packet(stralloc* out,const char* buf,
12                           unsigned int len);
13

DESCRIPTION

15       dns_name_packet is a low-level component of dns_name4, designed to sup‐
16       port asynchronous DNS lookups. It reads a DNS packet of length len from
17       buf,  extracts  the  first  PTR  record  from the answer section of the
18       packet, puts the result into out, and returns 0 or -1 the same  way  as
19       dns_name4.
20

SEE ALSO

22       dns_name4(3), dns_name6(3), dns_ip4_packet(3)
23
24
25
26                                                            dns_name_packet(3)
Impressum