Skip to main content

Name

dns_get_As

Synopsis

#include "hooks/core/dns_get_As.h"

| int **dns_get_As** ( | closure, |   | |   | name, |   | |   | mxinfo); |   |

void * <var class="pdparam">closure</var>; const char * <var class="pdparam">name</var>; mx_info_closure * <var class="pdparam">mxinfo</var>;

| int **has_core_dns_get_As_hook** ( | ); |   |

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

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

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

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

| int **call_core_dns_get_As_hook** ( | name, |   | |   | mxinfo); |   |

const char * <var class="pdparam">name</var>; mx_info_closure * <var class="pdparam">mxinfo</var>;

Description

The dns_get_As command requests the name resolution subsystem to resolve the provided hostname to a set of IP addresses. Upon successful resolution, the mail exchange's IP addresses should be registered via dns_domain_add_failed_a() or dns_set_mx_addresses(). If the mxinfo->refresh is non-zero, then dns_replace_host_in_timeheap() should be called. After updating or inserting, mail_queue_maintiain_domain() should be called to initiate delivery.

Was this page helpful?