/*
- * $Id: ipcache.cc,v 1.101 1997/02/19 00:04:13 wessels Exp $
+ * $Id: ipcache.cc,v 1.102 1997/02/19 17:08:19 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
}
if (addrs != NULL) /* TEMPORARY */
debug_trap("ipcache_nbgethostbyname: Stack Trashed");
+ if (NDnsServersAlloc)
+ debug(14, 0, "WARNING: blocking on gethostbyname() for '%s'\n", name);
ipcache_gethostbyname(name, IP_BLOCKING_LOOKUP);
ipcache_call_pending(i);
}
IpcacheStats.misses++;
if (BIT_TEST(flags, IP_BLOCKING_LOOKUP)) {
IpcacheStats.ghbn_calls++;
- debug(14, NDnsServersAlloc ? 0 : 3,
- "WARNING: blocking on gethostbyname() for '%s'\n", name);
hp = gethostbyname(name);
if (hp && hp->h_name && (hp->h_name[0] != '\0') && ip_table) {
/* good address, cached */