Qsmtp  0.30dev
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 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

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
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
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
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
int dnstxt ( char **  out,
const char *  host 
)

query DNS for TXT entries

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