24 #ifndef _ASTERISK_DNS_H 25 #define _ASTERISK_DNS_H 54 int (*callback)(
void *context,
unsigned char *
answer,
int len,
unsigned char *fullanswer));
82 int (*response_handler)(
void *context,
unsigned char *dns_response,
int dns_response_len,
int rcode),
83 int (*record_handler)(
void *context,
unsigned char *record,
int record_len,
int ttl));
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)
struct ao2_container * ast_dns_get_nameservers(void)
Retrieve the configured nameservers of the system.
ast_dns_search_result
DNS search return values.
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.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
static char context[AST_MAX_CONTEXT]