Qsmtp  0.37
Functions
libowfatconn.h File Reference

function declarations for libowfat connector More...

#include <sys/types.h>

Go to the source code of this file.

Functions

int dnsip4 (char **out, size_t *len, const char *host)
 query DNS for IPv4 address of host More...
 
int dnsip6 (char **out, size_t *len, const char *host)
 query DNS for IPv6 address of host More...
 
int dnstxt (char **, const char *)
 query DNS for TXT entries and concat them to a single string More...
 
int dnstxt_records (char **, const char *)
 query DNS for TXT entries, return records as a sequence of strings and 0-bytes More...
 
int dnsmx (char **out, size_t *len, const char *host)
 query DNS for MX entries More...
 
int dnsname (char **, const struct in6_addr *)
 query DNS for name for a given IP address More...
 

Detailed Description

function declarations for libowfat connector

Function Documentation

◆ dnsip4()

int dnsip4 ( char **  out,
size_t *  len,
const char *  host 
)

query DNS for IPv4 address of host

Parameters
outresult string will be stored here, memory is malloced
lenlength of out
hosthost name to look up
Return values
0success
-1an error occurred, errno is set

◆ dnsip6()

int dnsip6 ( char **  out,
size_t *  len,
const char *  host 
)

query DNS for IPv6 address of host

Parameters
outresult string will be stored here, memory is malloced
lenlength of out
hosthost name to look up
Return values
0success
-1an error occurred, errno is set

◆ dnsmx()

int dnsmx ( char **  out,
size_t *  len,
const char *  host 
)

query DNS for MX entries

Parameters
outresult string will be stored here, memory is malloced
lenlength of out
hosthost name to look up
Return values
0success
-1an error occurred, errno is set

◆ dnsname()

int dnsname ( char **  out,
const struct in6_addr *  ip 
)

query DNS for name for a given IP address

Parameters
outDNS name of host will be stored here, memory is malloced
ipIPv6 address of host to look up
Return values
0success
-1an error occurred, errno is set

◆ dnstxt()

int dnstxt ( char **  out,
const char *  host 
)

query DNS for TXT entries and concat them to a single string

Parameters
outTXT record of host will be stored here, memory is malloced
hostname of host to look up
Return values
0success
-1an error occurred, errno is set

◆ dnstxt_records()

int dnstxt_records ( char **  out,
const char *  host 
)

query DNS for TXT entries, return records as a sequence of strings and 0-bytes

Parameters
outTXT record of host will be stored here, memory is malloced
hostname of host to look up
Return values
0success
-1an error occurred, errno is set