Go to the source code of this file.
Namespaces | |
namespace | Dns |
generic DNS API | |
Typedefs | |
typedef void | FQDNH(const char *, const Dns::LookupDetails &details, void *) |
Functions | |
void | fqdncache_init (void) |
void | fqdnStats (StoreEntry *) |
void | fqdncache_restart (void) |
void | fqdncache_purgelru (void *) |
void | fqdncacheAddEntryFromHosts (char *addr, SBufList &hostnames) |
const char * | fqdncache_gethostbyaddr (const Ip::Address &, int flags) |
void | fqdncache_nbgethostbyaddr (const Ip::Address &, FQDNH *, void *) |
Variables | |
bool | Dns::ResolveClientAddressesAsap = false |
whether to do reverse DNS lookups for source IPs of accepted connections More... | |
Typedef Documentation
◆ FQDNH
typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *) |
Definition at line 26 of file fqdncache.h.
Function Documentation
◆ fqdncacheAddEntryFromHosts()
void fqdncacheAddEntryFromHosts | ( | char * | addr, |
SBufList & | hostnames | ||
) |
Adds a "static" entry from /etc/hosts.
- Parameters
-
addr FQDN name to be added. hostnames list of hostnames for the addr
Definition at line 636 of file fqdncache.cc.
References DBG_IMPORTANT, debugs, fqdncache_entry::flags, FQDN_MAX_NAMES, fqdncache_get(), fqdncacheAddEntry(), fqdncacheLockEntry(), fqdncacheRelease(), fqdncacheUnlockEntry(), fqdncache_entry::Flags::fromhosts, fqdncache_entry::locks, fqdncache_entry::name_count, fqdncache_entry::names, Tolower(), and xstrdup.
Referenced by parseEtcHosts().