#include <named_config.h>
|
typedef std::map< std::string,
std::string > | ZoneViewMap |
|
typedef std::pair< std::string,
std::string > | ZoneViewPair |
|
|
| NamedConfig (const std::string &named_config_dir, const std::string &named_config_file, const std::string &named_log_file, const std::string &rndc_config_file, const std::string &rndc_secret, const std::string &named_max_cache_size) |
|
virtual | ~NamedConfig () |
|
void | Reset () |
|
virtual void | AddView (const VirtualDnsConfig *vdns) |
|
virtual void | ChangeView (const VirtualDnsConfig *vdns) |
|
virtual void | DelView (const VirtualDnsConfig *vdns) |
|
virtual void | AddAllViews () |
|
virtual void | AddZone (const Subnet &subnet, const VirtualDnsConfig *vdns) |
|
virtual void | DelZone (const Subnet &subnet, const VirtualDnsConfig *vdns) |
|
virtual void | UpdateNamedConf (const VirtualDnsConfig *updated_vdns=NULL) |
|
void | RemoveZoneFiles (const VirtualDnsConfig *vdns, ZoneList &zones) |
|
virtual std::string | GetZoneFileName (const std::string &vdns, const std::string &name) |
|
virtual std::string | GetZoneFilePath (const std::string &vdns, const std::string &name) |
|
virtual std::string | GetResolveFile () |
|
std::string | GetPidFilePath () |
|
std::string | GetSessionKeyFilePath () |
|
const std::string & | named_config_dir () const |
|
const std::string & | named_config_file () const |
|
const std::string & | named_sessionkey_file () const |
|
|
void | CreateRndcConf () |
|
void | CreateNamedConf (const VirtualDnsConfig *updated_vdns) |
|
void | WriteOptionsConfig () |
|
void | WriteRndcConfig () |
|
void | WriteLoggingConfig () |
|
void | WriteViewConfig (const VirtualDnsConfig *updated_vdns) |
|
void | WriteDefaultView (ZoneViewMap &zone_view_map) |
|
void | WriteZone (const std::string &vdns, const std::string &name, bool is_master, bool is_rr, const std::string &next_dns) |
|
void | AddZoneFiles (ZoneList &zones, const VirtualDnsConfig *vdns) |
|
void | RemoveZoneFile (const VirtualDnsConfig *vdns, std::string &zone) |
|
std::string | GetZoneNSName (const std::string domain_name) |
|
std::string | GetZoneMXName (const std::string domain_name) |
|
void | CreateZoneFile (std::string &zone_name, const VirtualDnsConfig *vdns, bool ns) |
|
void | MakeZoneList (const VirtualDnsConfig *vdns_config, ZoneList &zones) |
|
void | MakeReverseZoneList (const VirtualDnsConfig *vdns_config, ZoneList &zones) |
|
void | GetDefaultForwarders () |
|
Definition at line 44 of file named_config.h.
NamedConfig::NamedConfig |
( |
const std::string & |
named_config_dir, |
|
|
const std::string & |
named_config_file, |
|
|
const std::string & |
named_log_file, |
|
|
const std::string & |
rndc_config_file, |
|
|
const std::string & |
rndc_secret, |
|
|
const std::string & |
named_max_cache_size |
|
) |
| |
|
inline |
virtual NamedConfig::~NamedConfig |
( |
| ) |
|
|
inlinevirtual |
void NamedConfig::AddAllViews |
( |
| ) |
|
|
virtual |
void NamedConfig::CreateRndcConf |
( |
| ) |
|
|
protected |
void NamedConfig::CreateZoneFile |
( |
std::string & |
zone_name, |
|
|
const VirtualDnsConfig * |
vdns, |
|
|
bool |
ns |
|
) |
| |
|
protected |
void NamedConfig::GetDefaultForwarders |
( |
| ) |
|
|
protected |
static NamedConfig* NamedConfig::GetNamedConfigObject |
( |
| ) |
|
|
inlinestatic |
string NamedConfig::GetPidFilePath |
( |
| ) |
|
virtual std::string NamedConfig::GetResolveFile |
( |
| ) |
|
|
inlinevirtual |
string NamedConfig::GetSessionKeyFilePath |
( |
| ) |
|
string NamedConfig::GetZoneFileName |
( |
const std::string & |
vdns, |
|
|
const std::string & |
name |
|
) |
| |
|
virtual |
string NamedConfig::GetZoneFilePath |
( |
const std::string & |
vdns, |
|
|
const std::string & |
name |
|
) |
| |
|
virtual |
string NamedConfig::GetZoneMXName |
( |
const std::string |
domain_name | ) |
|
|
protected |
string NamedConfig::GetZoneNSName |
( |
const std::string |
domain_name | ) |
|
|
protected |
void NamedConfig::Init |
( |
const std::string & |
named_config_dir, |
|
|
const std::string & |
named_config_file, |
|
|
const std::string & |
named_log_file, |
|
|
const std::string & |
rndc_config_file, |
|
|
const std::string & |
rndc_secret, |
|
|
const std::string & |
named_max_cache_size |
|
) |
| |
|
static |
const std::string& NamedConfig::named_config_dir |
( |
| ) |
const |
|
inline |
const std::string& NamedConfig::named_config_file |
( |
| ) |
const |
|
inline |
const std::string& NamedConfig::named_sessionkey_file |
( |
| ) |
const |
|
inline |
void NamedConfig::RemoveZoneFile |
( |
const VirtualDnsConfig * |
vdns, |
|
|
std::string & |
zone |
|
) |
| |
|
protected |
void NamedConfig::Reset |
( |
| ) |
|
void NamedConfig::Shutdown |
( |
| ) |
|
|
static |
void NamedConfig::UpdateNamedConf |
( |
const VirtualDnsConfig * |
updated_vdns = NULL | ) |
|
|
virtual |
void NamedConfig::WriteDefaultView |
( |
ZoneViewMap & |
zone_view_map | ) |
|
|
protected |
void NamedConfig::WriteLoggingConfig |
( |
| ) |
|
|
protected |
void NamedConfig::WriteOptionsConfig |
( |
| ) |
|
|
protected |
void NamedConfig::WriteRndcConfig |
( |
| ) |
|
|
protected |
void NamedConfig::WriteZone |
( |
const std::string & |
vdns, |
|
|
const std::string & |
name, |
|
|
bool |
is_master, |
|
|
bool |
is_rr, |
|
|
const std::string & |
next_dns |
|
) |
| |
|
protected |
bool NamedConfig::all_zone_files_ |
|
protected |
std::string NamedConfig::default_forwarders_ |
|
protected |
std::ofstream NamedConfig::file_ |
|
protected |
std::string NamedConfig::named_config_dir_ |
|
protected |
std::string NamedConfig::named_config_file_ |
|
protected |
std::string NamedConfig::named_log_file_ |
|
protected |
std::string NamedConfig::named_max_cache_size_ |
|
protected |
std::string NamedConfig::named_sessionkey_file_ |
|
protected |
const string NamedConfig::NamedZoneFileSuffix = "zone" |
|
static |
const string NamedConfig::NamedZoneMXPrefix = "contrail-mx" |
|
static |
const string NamedConfig::NamedZoneNSPrefix = "contrail-ns" |
|
static |
const int NamedConfig::NameWidth = 30 |
|
static |
const int NamedConfig::NumberWidth = 10 |
|
static |
const char NamedConfig::pid_file_name = "contrail-named.pid" |
|
static |
bool NamedConfig::reset_flag_ |
|
protected |
std::string NamedConfig::rndc_config_file_ |
|
protected |
std::string NamedConfig::rndc_secret_ |
|
protected |
const char NamedConfig::sessionkey_file_name = "session.key" |
|
static |
const int NamedConfig::TypeWidth = 4 |
|
static |
The documentation for this class was generated from the following files: