function declarations for libowfat connector
More...
#include <sys/types.h>
Go to the source code of this file.
|
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...
|
|
function declarations for libowfat connector
int dnsip4 |
( |
char ** |
out, |
|
|
size_t * |
len, |
|
|
const char * |
host |
|
) |
| |
query DNS for IPv4 address of host
- Parameters
-
out | result string will be stored here, memory is malloced |
len | length of out |
host | host name to look up |
- Return values
-
0 | success |
-1 | an error occurred, errno is set |
int dnsip6 |
( |
char ** |
out, |
|
|
size_t * |
len, |
|
|
const char * |
host |
|
) |
| |
query DNS for IPv6 address of host
- Parameters
-
out | result string will be stored here, memory is malloced |
len | length of out |
host | host name to look up |
- Return values
-
0 | success |
-1 | an error occurred, errno is set |
int dnsmx |
( |
char ** |
out, |
|
|
size_t * |
len, |
|
|
const char * |
host |
|
) |
| |
query DNS for MX entries
- Parameters
-
out | result string will be stored here, memory is malloced |
len | length of out |
host | host name to look up |
- Return values
-
0 | success |
-1 | an error occurred, errno is set |
int dnsname |
( |
char ** |
out, |
|
|
const struct in6_addr * |
ip |
|
) |
| |
query DNS for name for a given IP address
- Parameters
-
out | DNS name of host will be stored here, memory is malloced |
ip | IPv6 address of host to look up |
- Return values
-
0 | success |
-1 | an error occurred, errno is set |
int dnstxt |
( |
char ** |
out, |
|
|
const char * |
host |
|
) |
| |
query DNS for TXT entries
- Parameters
-
out | TXT record of host will be stored here, memory is malloced |
host | name of host to look up |
- Return values
-
0 | success |
-1 | an error occurred, errno is set |