Skip to main content

Name

post_dns_handle_a

Synopsis

#include "hooks/core/post_dns_handle_a.h"

| void **post_dns_handle_a** ( | closure, |   | |   | mxinfo, |   | |   | status, |   | |   | abuf, |   | |   | alen, |   | |   | qdomain); |   |

void * <var class="pdparam">closure</var>; mx_info_closure * <var class="pdparam">mxinfo</var>; int <var class="pdparam">status</var>; unsigned char * <var class="pdparam">abuf</var>; int <var class="pdparam">alen</var>; const char * <var class="pdparam">qdomain</var>;

| int **has_core_post_dns_handle_a_hook** ( | ); |   |

| void **register_core_post_dns_handle_a_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_core_post_dns_handle_a_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_core_post_dns_handle_a_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_core_post_dns_handle_a_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **call_core_post_dns_handle_a_hook** ( | mxinfo, |   | |   | status, |   | |   | abuf, |   | |   | alen, |   | |   | qdomain); |   |

mx_info_closure * <var class="pdparam">mxinfo</var>; int <var class="pdparam">status</var>; unsigned char * <var class="pdparam">abuf</var>; int <var class="pdparam">alen</var>; const char * <var class="pdparam">qdomain</var>;

Description

The dns_handle_a is called when DNS query for A record is returned. The post_dns_handle_a hook is called after the query result is handled or the processing logic in dns_handle_a is short circuit when a pre_dns_handle_a hook function returns 1 or 2. The hook function must check if mxinfo is NULL or not before using it.

Was this page helpful?