Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
584 B

.TH dns_txt 3
dns_txt \- look up TXT records
.B #include <dns.h>
int \fBdns_txt\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR);
dns_txt looks up TXT records for the fully-qualified domain name in
\fIfqdn\fR. It puts the concatenation of the TXT records into \fIout\fR
and returns 0. If the domain does not exist in DNS, or has no TXT
records, \fIout\fR will be empty.
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 \fIout\fR.