24#ifndef _ASTERISK_DNS_H
25#define _ASTERISK_DNS_H
52 int (*callback)(
void *
context,
unsigned char *
answer,
int len,
unsigned char *fullanswer));
80 int (*response_handler)(
void *
context,
unsigned char *dns_response,
int dns_response_len,
int rcode),
81 int (*record_handler)(
void *
context,
unsigned char *record,
int record_len,
int ttl));
static int answer(void *data)
enum ast_dns_search_result ast_search_dns_ex(void *context, const char *dname, int rr_class, int rr_type, int(*response_handler)(void *context, unsigned char *dns_response, int dns_response_len, int rcode), int(*record_handler)(void *context, unsigned char *record, int record_len, int ttl))
Extended version of the DNS search function.
struct ao2_container * ast_dns_get_nameservers(void)
Retrieve the configured nameservers of the system.
int ast_search_dns(void *context, const char *dname, int class, int type, int(*callback)(void *context, unsigned char *answer, int len, unsigned char *fullanswer))
Perform DNS lookup (used by DNS, enum and SRV lookups)
ast_dns_search_result
DNS search return values.
@ AST_DNS_SEARCH_NO_RECORDS
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)