Alternc
latest
Alternc logiel libre pour l'hébergement
|
Manages BIND 9+ zone management templates in AlternC 3.5+. More...
Public Member Functions | |
hook_updatedomains_dns_pre () | |
Hook launched before any action by updatedomains initialize the reload/reconfig flags used by POST @NOTE launched as ROOT. More... | |
hook_updatedomains_dns_add ($dominfo) | |
Hook launched for each ZONE for which we want a zone update (or create) update the zone, create it if necessary, and ask for reload or reconfig of bind9 depending on what happened @NOTE launched as ROOT. More... | |
hook_updatedomains_dns_del ($dominfo) | |
Hook launched for each ZONE for which we want a zone DELETE remove the zone and its file, and if any action happened, ask for bind RECONFIG at posttime @NOTE launched as ROOT. More... | |
hook_updatedomains_dns_post () | |
Hook function launched at the very end of updatedomains here, we just reload OR reconfig (or both) bind9 depending on what happened before. More... | |
read_zone ($domain) | |
read a zone file for $domain, More... | |
conf_from_db ($domain) | |
Return the part of the conf we got from the sub_domaines table. More... | |
Public Attributes | |
$shouldreload | |
$shouldreconfig | |
$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" | |
$zone_file_directory = '/var/lib/alternc/bind/zones' | |
Manages BIND 9+ zone management templates in AlternC 3.5+.
Definition at line 26 of file m_bind.php.
m_bind::conf_from_db | ( | $domain | ) |
Return the part of the conf we got from the sub_domaines table.
global | m_mysql $db | |
string | $domain |
Definition at line 219 of file m_bind.php.
Referenced by hook_updatedomains_dns_add().
m_bind::hook_updatedomains_dns_add | ( | $dominfo | ) |
Hook launched for each ZONE for which we want a zone update (or create) update the zone, create it if necessary, and ask for reload or reconfig of bind9 depending on what happened @NOTE launched as ROOT.
Definition at line 56 of file m_bind.php.
References conf_from_db(), and read_zone().
m_bind::hook_updatedomains_dns_del | ( | $dominfo | ) |
Hook launched for each ZONE for which we want a zone DELETE remove the zone and its file, and if any action happened, ask for bind RECONFIG at posttime @NOTE launched as ROOT.
Definition at line 131 of file m_bind.php.
m_bind::hook_updatedomains_dns_post | ( | ) |
Hook function launched at the very end of updatedomains here, we just reload OR reconfig (or both) bind9 depending on what happened before.
@NOTE launched as ROOT
Definition at line 159 of file m_bind.php.
m_bind::hook_updatedomains_dns_pre | ( | ) |
Hook launched before any action by updatedomains initialize the reload/reconfig flags used by POST @NOTE launched as ROOT.
Definition at line 43 of file m_bind.php.
m_bind::read_zone | ( | $domain | ) |
read a zone file for $domain,
$domain | string the domain name |
Definition at line 189 of file m_bind.php.
Referenced by hook_updatedomains_dns_add().
m_bind::$NAMED_CONF ="/var/lib/alternc/bind/automatic.conf" |
Definition at line 33 of file m_bind.php.
m_bind::$NAMED_TEMPLATE ="/etc/alternc/templates/bind/templates/named.template" |
Definition at line 32 of file m_bind.php.
m_bind::$RNDC ="/usr/sbin/rndc" |
Definition at line 34 of file m_bind.php.
m_bind::$shouldreconfig |
Definition at line 29 of file m_bind.php.
m_bind::$shouldreload |
Definition at line 28 of file m_bind.php.
m_bind::$zone_file_directory = '/var/lib/alternc/bind/zones' |
Definition at line 36 of file m_bind.php.
m_bind::$ZONE_TEMPLATE ="/etc/alternc/templates/bind/templates/zone.template" |
Definition at line 31 of file m_bind.php.