class libfwbuilder::DNS

This is abstract class

Inheritance:


Public Methods

[more] DNS()
[more]static vector<IPAddress> getHostByName(const string &name) throw(FWException)
Finds IP adddresses of the host with given host name.
[more]static HostEnt getHostByAddr(const IPAddress &addr) throw(FWException)
Find all host names of host with given IP.
[more]static HostEnt getHostByAddr(const IPAddress &addr, int retries_, int timeout_) throw(FWException)
Return name of host with given IP
[more]multimap<string, IPAddress> getNS(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Finds NS records for given domain
[more]map<string, set<IPAddress> > findA(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Attempts to fetch zone for given domain for it's name server.
[more]map<string, set<IPAddress> > findA(const string &domain, const IPAddress &ns, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Attempts to fetch zone for given domain for specific server.

Protected Methods

[more]static string getErrorMessage(int rcode)


Inherited from BackgroundOp:

Public Fields

oSigC::Signal1<int,int> completed

Public Methods

ovoid detach(Pool<BackgroundOp>* p)
ovirtual pthread_t start_operation(ostream* ) throw(FWException)
ovirtual void stop_operation()
obool get_running_flag()
obool get_stop_program_flag()
oFWException* get_latest_error()
ogint monitor_operation()

Protected Fields

oFWException* error
oPool<BackgroundOp> * pool
oMutex pool_mutex

Protected Methods

ovirtual void run_impl(Logger* ) throw(FWException)
ovirtual void operation_completed()
ovoid set_running_flag()
ovoid clear_running_flag()
ovirtual void check_stop() throw(FWException)
ovoid clear_stop_program_flag()
ovoid set_stop_program_flag()


Documentation

This is abstract class
o DNS()

ostatic vector<IPAddress> getHostByName(const string &name) throw(FWException)
Finds IP adddresses of the host with given host name. This operation does not run in backgound.

ostatic HostEnt getHostByAddr(const IPAddress &addr) throw(FWException)
Find all host names of host with given IP. This operation does not run in backgound.

ostatic HostEnt getHostByAddr(const IPAddress &addr, int retries_, int timeout_) throw(FWException)
Return name of host with given IP

omultimap<string, IPAddress> getNS(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Finds NS records for given domain

omap<string, set<IPAddress> > findA(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Attempts to fetch zone for given domain for it's name server. If succeeded, finds all 'A' records in it and returs hostname/IPAddress pairs.

omap<string, set<IPAddress> > findA(const string &domain, const IPAddress &ns, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
Attempts to fetch zone for given domain for specific server. If succeeded, finds all 'A' records in it and returs hostname/IPAddress pairs.

ostatic string getErrorMessage(int rcode)


Direct child classes:
DNS_getNS_query
DNS_findA_query
DNS_bulkBackResolve_query

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.