Alternc
latest
Alternc logiel libre pour l'hébergement
|
bind9 file management class More...
Public Member Functions | |
conf_from_db ($domain=false) | |
Return the part of the conf we got from the database. More... | |
get_zone_file_uri ($domain) | |
Return full path of the zone configuration file. More... | |
get_zone_file ($domain) | |
get_serial ($domain) | |
get_persistent ($domain) | |
Return lines that are after ;;; END ALTERNC AUTOGENERATE CONFIGURATION. More... | |
get_zone_header () | |
get_domain_summary ($domain=false) | |
dkim_delete ($domain) | |
dkim_generate_key ($domain) | |
Generate the domain DKIM key. More... | |
dkim_refresh_list () | |
Refresh DKIM configuration: be sure to list the domain having a private key (and only them) More... | |
dkim_entry ($domain) | |
mail_autoconfig_entry ($domain) | |
Conditionnal generation autoconfig entry for outlook / thunderbird If entry with the same name allready exist, skip it. More... | |
get_zone ($domain) | |
Return a fully generated zone. More... | |
reload_zone ($domain) | |
is_locked ($domain) | |
return true if zone is locked More... | |
save_zone ($domain) | |
delete_zone ($domain) | |
Delete the zone configuration file. More... | |
reload_named () | |
regenerate_conf ($all=false) | |
Regenerate bind configuration and load it. More... | |
Public Attributes | |
$ZONE_TEMPLATE ="/etc/alternc/templates/bind/templates/zone.template" | |
$NAMED_TEMPLATE ="/etc/alternc/templates/bind/templates/named.template" | |
$NAMED_CONF ="/var/lib/alternc/bind/automatic.conf" | |
$RNDC ="/usr/sbin/rndc" | |
$dkim_trusted_host_file = "/etc/opendkim/TrustedHosts" | |
$dkim_keytable_file = "/etc/opendkim/KeyTable" | |
$dkim_signingtable_file = "/etc/opendkim/SigningTable" | |
$cache_conf_db = array() | |
$cache_get_persistent = array() | |
$cache_zone_file = array() | |
$cache_domain_summary = array() | |
$zone_file_directory = '/var/lib/alternc/bind/zones/' | |
Private Member Functions | |
dummy_for_translation () | |
bind9 file management class
Definition at line 26 of file class_system_bind.php.
system_bind::conf_from_db | ( | $domain = false | ) |
Return the part of the conf we got from the database.
global | m_mysql $db | |
string | $domain |
Definition at line 50 of file class_system_bind.php.
References $cache_conf_db, $db, $domain, and $t.
Referenced by get_zone(), and mail_autoconfig_entry().
system_bind::delete_zone | ( | $domain | ) |
Delete the zone configuration file.
string | $domain |
Definition at line 442 of file class_system_bind.php.
References $domain, dkim_delete(), and get_zone_file_uri().
Referenced by regenerate_conf().
system_bind::dkim_delete | ( | $domain | ) |
string | $domain |
Definition at line 188 of file class_system_bind.php.
Referenced by delete_zone().
system_bind::dkim_entry | ( | $domain | ) |
string | $domain |
Definition at line 294 of file class_system_bind.php.
References $domain, dkim_generate_key(), and get_domain_summary().
Referenced by get_zone().
system_bind::dkim_generate_key | ( | $domain | ) |
Generate the domain DKIM key.
string | $domain |
Definition at line 205 of file class_system_bind.php.
References $domain, and get_domain_summary().
Referenced by dkim_entry().
system_bind::dkim_refresh_list | ( | ) |
Refresh DKIM configuration: be sure to list the domain having a private key (and only them)
Definition at line 233 of file class_system_bind.php.
References $domain, and get_domain_summary().
Referenced by regenerate_conf().
|
private |
Definition at line 519 of file class_system_bind.php.
system_bind::get_domain_summary | ( | $domain = false | ) |
global | m_dom $dom | |
string | $domain |
Definition at line 170 of file class_system_bind.php.
References $cache_domain_summary, $dom, and $domain.
Referenced by dkim_entry(), dkim_generate_key(), dkim_refresh_list(), get_zone(), mail_autoconfig_entry(), regenerate_conf(), and reload_named().
system_bind::get_persistent | ( | $domain | ) |
Return lines that are after ;;; END ALTERNC AUTOGENERATE CONFIGURATION.
string | $domain |
Definition at line 142 of file class_system_bind.php.
References $domain, and get_zone_file().
Referenced by get_zone(), and mail_autoconfig_entry().
system_bind::get_serial | ( | $domain | ) |
string | $domain |
Definition at line 116 of file class_system_bind.php.
References $domain, and get_zone_file().
Referenced by get_zone().
system_bind::get_zone | ( | $domain | ) |
Return a fully generated zone.
global | string $L_FQDN | |
global | string $L_NS1_HOSTNAME | |
global | string $L_NS2_HOSTNAME | |
global | string $L_DEFAULT_MX | |
global | string $L_DEFAULT_SECONDARY_MX | |
global | string $L_PUBLIC_IP | |
string | $domain |
Definition at line 345 of file class_system_bind.php.
References $domain, conf_from_db(), dkim_entry(), get_domain_summary(), get_persistent(), get_serial(), get_zone_header(), and mail_autoconfig_entry().
Referenced by save_zone().
system_bind::get_zone_file | ( | $domain | ) |
string | $domain |
Definition at line 98 of file class_system_bind.php.
References $domain, and get_zone_file_uri().
Referenced by get_persistent(), get_serial(), and is_locked().
system_bind::get_zone_file_uri | ( | $domain | ) |
Return full path of the zone configuration file.
string | $domain |
Definition at line 88 of file class_system_bind.php.
Referenced by delete_zone(), get_zone_file(), reload_named(), and save_zone().
system_bind::get_zone_header | ( | ) |
system_bind::is_locked | ( | $domain | ) |
return true if zone is locked
string | $domain |
Definition at line 399 of file class_system_bind.php.
References $domain, and get_zone_file().
Referenced by save_zone().
system_bind::mail_autoconfig_entry | ( | $domain | ) |
Conditionnal generation autoconfig entry for outlook / thunderbird If entry with the same name allready exist, skip it.
string | $domain |
Definition at line 311 of file class_system_bind.php.
References $domain, conf_from_db(), get_domain_summary(), and get_persistent().
Referenced by get_zone().
system_bind::regenerate_conf | ( | $all = false | ) |
Regenerate bind configuration and load it.
global | m_hooks $hooks | |
boolean | $all |
Definition at line 490 of file class_system_bind.php.
References $domain, $hooks, delete_zone(), dkim_refresh_list(), get_domain_summary(), reload_named(), reload_zone(), and save_zone().
system_bind::reload_named | ( | ) |
global | m_hooks $hooks |
Definition at line 457 of file class_system_bind.php.
References $domain, $hooks, get_domain_summary(), and get_zone_file_uri().
Referenced by regenerate_conf().
system_bind::reload_zone | ( | $domain | ) |
string | $domain |
Definition at line 385 of file class_system_bind.php.
References $domain.
Referenced by regenerate_conf().
system_bind::save_zone | ( | $domain | ) |
Definition at line 415 of file class_system_bind.php.
References $db, $dom, $domain, get_zone(), get_zone_file_uri(), and is_locked().
Referenced by regenerate_conf().
system_bind::$cache_conf_db = array() |
Definition at line 36 of file class_system_bind.php.
Referenced by conf_from_db().
system_bind::$cache_domain_summary = array() |
Definition at line 39 of file class_system_bind.php.
Referenced by get_domain_summary().
system_bind::$cache_get_persistent = array() |
Definition at line 37 of file class_system_bind.php.
system_bind::$cache_zone_file = array() |
Definition at line 38 of file class_system_bind.php.
system_bind::$dkim_keytable_file = "/etc/opendkim/KeyTable" |
Definition at line 33 of file class_system_bind.php.
system_bind::$dkim_signingtable_file = "/etc/opendkim/SigningTable" |
Definition at line 34 of file class_system_bind.php.
system_bind::$dkim_trusted_host_file = "/etc/opendkim/TrustedHosts" |
Definition at line 32 of file class_system_bind.php.
system_bind::$NAMED_CONF ="/var/lib/alternc/bind/automatic.conf" |
Definition at line 29 of file class_system_bind.php.
system_bind::$NAMED_TEMPLATE ="/etc/alternc/templates/bind/templates/named.template" |
Definition at line 28 of file class_system_bind.php.
system_bind::$RNDC ="/usr/sbin/rndc" |
Definition at line 30 of file class_system_bind.php.
system_bind::$zone_file_directory = '/var/lib/alternc/bind/zones/' |
Definition at line 40 of file class_system_bind.php.
system_bind::$ZONE_TEMPLATE ="/etc/alternc/templates/bind/templates/zone.template" |
Definition at line 27 of file class_system_bind.php.