Dns Namespace Reference

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()

◆ 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]

std::ostream & Dns::operator<< ( std::ostream &  os,
const CachedIps ips 
)
inline

Definition at line 216 of file ipcache.h.

References Dns::CachedIps::reportCurrent().

◆ operator<<() [2/2]

std::ostream & Dns::operator<< ( std::ostream &  os,
const LookupDetails dns 
)
inline

Definition at line 43 of file LookupDetails.h.

References Dns::LookupDetails::print().

Variable Documentation

◆ ResolveClientAddressesAsap

bool Dns::ResolveClientAddressesAsap = false
extern

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors