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