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

NAME

6       dns_txt - look up TXT records
7

SYNTAX

9       #include <dns.h>
10
11       int dns_txt(stralloc* out,stralloc* fqdn);
12

DESCRIPTION

14       dns_txt  looks  up  TXT  records for the fully-qualified domain name in
15       fqdn. It puts the concatenation of the TXT records into out and returns
16       0.   If  the  domain  does not exist in DNS, or has no TXT records, out
17       will be empty.
18
19       If dns_txt has trouble with the DNS lookup or runs out  of  memory,  it
20       returns -1, setting errno appropriately. It may or may not change out.
21

SEE ALSO

23       dns_txt_packet(3)
24
25
26
27                                                                    dns_txt(3)
Impressum