generic DNS API
Classes | |
class | CachedIp |
a CachedIps element More... | |
class | CachedIps |
class | ConfigRr |
manage DNS internal component More... | |
class | GoodIpsIterator |
Iterates over good IPs in CachedIps, starting at the so called current one. More... | |
class | IpReceiver |
an interface for receiving IP::Addresses from nbgethostbyname() More... | |
class | IpsIterator |
Iterates over any (good and/or bad) IPs in CachedIps, in unspecified order. More... | |
class | IpsSelector |
class | LookupDetails |
encapsulates DNS lookup results More... | |
Functions | |
void | Init (void) |
std::ostream & | operator<< (std::ostream &os, const LookupDetails &dns) |
void | nbgethostbyname (const char *name, const CbcPointer< IpReceiver > &receiver) |
initiate an (often) asynchronous DNS lookup; the receiver gets the results More... | |
std::ostream & | operator<< (std::ostream &os, const CachedIps &ips) |
Variables | |
bool | ResolveClientAddressesAsap = false |
whether to do reverse DNS lookups for source IPs of accepted connections More... | |
Function Documentation
◆ Init()
void Dns::Init | ( | void | ) |
Definition at line 1541 of file dns_internal.cc.
References SquidConfig::Addrs, assert, comm_local_port(), COMM_NONBLOCKING, comm_open_listener(), COMM_SELECT_READ, Config, DBG_IMPORTANT, debugs, DnsSocketA, DnsSocketB, Ip::EnableIpv6, fatal(), hash_create(), hash_string, idns_lookup_hash, idnsAddMDNSNameservers(), idnsAddNameserver(), idnsParseNameservers(), idnsParseResolvConf(), idnsRead, idnsStats, SquidConfig::ignore_unknown_nameservers, Important, Ip::Address::isIPv4(), Ip::Address::isIPv6(), Ip::Address::isNoAddr(), nameservers, SquidConfig::onoff, RcodeMatrix, Mgr::RegisterAction(), Ip::Address::setIPv4(), Comm::SetSelect(), SquidConfig::udp_incoming, and SquidConfig::udp_outgoing.
Referenced by mainInitialize(), and mainReconfigureFinish().
◆ nbgethostbyname()
void Dns::nbgethostbyname | ( | const char * | name, |
const CbcPointer< IpReceiver > & | receiver | ||
) |
Definition at line 615 of file ipcache.cc.
References debugs, and ipcache_nbgethostbyname_().
Referenced by PeerSelector::resolveSelected().
◆ operator<<() [1/2]
|
inline |
Definition at line 216 of file ipcache.h.
References Dns::CachedIps::reportCurrent().
◆ operator<<() [2/2]
|
inline |
Definition at line 43 of file LookupDetails.h.
References Dns::LookupDetails::print().
Variable Documentation
◆ ResolveClientAddressesAsap
|
extern |
Definition at line 30 of file fqdncache.cc.
Referenced by configFreeMemory(), AccessLogEntry::getLogClientFqdn(), and ConnStateData::whenClientIpKnown().