libowfat/dns/dns_txt.3

18 lines
593 B
Groff
Raw Normal View History

2002-09-17 01:24:08 +00:00
.TH dns_txt 3
.SH NAME
dns_txt \- look up TXT records
.SH SYNTAX
.B #include <libowfat/dns.h>
2002-09-17 01:24:08 +00:00
int \fBdns_txt\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR);
.SH DESCRIPTION
2003-01-27 02:16:43 +00:00
dns_txt looks up TXT records for the fully-qualified domain name in
2002-09-17 01:24:08 +00:00
\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.
.SH "SEE ALSO"
dns_txt_packet(3)