/** wrapper function to reinitialize the resolver * This function must be called by each child process whenever * a resolver option changes */ void resolv_reinit(str *gname, str *name) { _resolv_init(); #ifdef DNS_WATCHDOG_SUPPORT if (on_resolv_reinit_cb) on_resolv_reinit_cb(name); #endif LM_DBG("DNS resolver has been reinitialized\n"); }
/** wrapper function to initialize the resolver at startup */ int resolv_init(void) { int res = -1; _resolv_init(); reinit_proto_prefs(NULL,NULL); /* init counter API only at startup * This function must be called before DNS cache init method (if available) */ res = stat_init(); return res; }
/* wrapper function to initialize the resolver at startup */ int resolv_init(void) { int res = -1; _resolv_init(); #ifdef USE_NAPTR init_naptr_proto_prefs(); #endif /* init counter API only at startup * This function must be called before DNS cache init method (if available) */ res = stat_init(); return res; }