Alternc  latest
Alternc logiel libre pour l'hébergement
 All Classes Namespaces Files Functions Variables Pages
system_bind Class Reference

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 ()
 

Detailed Description

bind9 file management class

Definition at line 26 of file class_system_bind.php.

Member Function Documentation

system_bind::conf_from_db (   $domain = false)

Return the part of the conf we got from the database.

Parameters
globalm_mysql $db
string$domain
Returns
array $this->cache_conf_db

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().

50  {
51  global $db;
52  // Use cache, fill cache if empty
53  if (empty($this->cache_conf_db)) {
54  $db->query("
55  select
56  sd.domaine,
57  replace(replace(dt.entry,'%TARGET%',sd.valeur), '%SUB%', if(length(sd.sub)>0,sd.sub,'@')) as entry
58  from
59  sub_domaines sd,
60  domaines_type dt
61  where
62  sd.type=dt.name
63  and sd.enable in ('ENABLE', 'ENABLED')
64  order by entry ;");
65  $t=array();
66  while ($db->next_record()) {
67  $t[$db->f('domaine')][] = $db->f('entry');
68  }
69  $this->cache_conf_db = $t;
70  }
71  if ($domain) {
72  if (isset($this->cache_conf_db[$domain])) {
73  return $this->cache_conf_db[$domain];
74  } else {
75  return array();
76  }
77  } // if domain
78  return $this->cache_conf_db;
79  }
global $db
Definition: bootstrap.php:22
foreach($domaines_user as $domaine) $t
$domain
Definition: dom_import.php:36
system_bind::delete_zone (   $domain)

Delete the zone configuration file.

Parameters
string$domain
Returns
boolean

Definition at line 442 of file class_system_bind.php.

References $domain, dkim_delete(), and get_zone_file_uri().

Referenced by regenerate_conf().

442  {
443  $file=$this->get_zone_file_uri($domain);
444  if (file_exists($file)) {
445  unlink($file);
446  }
447  $this->dkim_delete($domain);
448  return true;
449  }
get_zone_file_uri($domain)
Return full path of the zone configuration file.
dkim_delete($domain)
$domain
Definition: dom_import.php:36
system_bind::dkim_delete (   $domain)
Parameters
string$domain
Returns
boolean

Definition at line 188 of file class_system_bind.php.

Referenced by delete_zone().

188  {
189  $target_dir = "/etc/opendkim/keys/$domain";
190  if (file_exists($target_dir)) {
191  @unlink("$target_dir/alternc_private");
192  @unlink("$target_dir/alternc.txt");
193  @rmdir($target_dir);
194  }
195  return true;
196  }
system_bind::dkim_entry (   $domain)
Parameters
string$domain
Returns
string

Definition at line 294 of file class_system_bind.php.

References $domain, dkim_generate_key(), and get_domain_summary().

Referenced by get_zone().

294  {
295  $keyfile="/etc/opendkim/keys/$domain/alternc.txt";
296  $domainInfo = $this->get_domain_summary($domain);
297  if (! file_exists($keyfile) && $domainInfo['gesmx'] ) {
298  $this->dkim_generate_key($domain);
299  }
300  return @file_get_contents($keyfile);
301  }
dkim_generate_key($domain)
Generate the domain DKIM key.
get_domain_summary($domain=false)
$domain
Definition: dom_import.php:36
system_bind::dkim_generate_key (   $domain)

Generate the domain DKIM key.

Parameters
string$domain
Returns
null|boolean

Definition at line 205 of file class_system_bind.php.

References $domain, and get_domain_summary().

Referenced by dkim_entry().

205  {
206  // Stop here if we do not manage the mail
207  $domainInfo = $this->get_domain_summary($domain);
208  if ( ! $domainInfo['gesmx'] ) return;
209 
210  $target_dir = "/etc/opendkim/keys/$domain";
211 
212  if (file_exists($target_dir.'/alternc.txt')) return; // Do not generate if exist
213 
214  if (! is_dir($target_dir)) mkdir($target_dir); // create dir
215 
216  // Generate the key
217  $old_dir=getcwd();
218  chdir($target_dir);
219  exec('opendkim-genkey -r -d '.escapeshellarg($domain).' -s "alternc" ');
220  chdir($old_dir);
221 
222  // opendkim must be owner of the key
223  chown("$target_dir/alternc.private", 'opendkim');
224  chgrp("$target_dir/alternc.private", 'opendkim');
225 
226  return true; // FIXME handle error
227  }
get_domain_summary($domain=false)
$domain
Definition: dom_import.php:36
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().

233  {
234  // so ugly... but there is only 1 pass, not 3. Still ugly.
235  $trusted_host_new = "# WARNING: this file is auto generated by AlternC.\n# Add your changes after the last line\n";
236  $keytable_new = "# WARNING: this file is auto generated by AlternC.\n# Add your changes after the last line\n";
237  $signingtable_new = "# WARNING: this file is auto generated by AlternC.\n# Add your changes after the last line\n";
238 
239  # Generate automatic entry
240  foreach ($this->get_domain_summary() as $domain => $ds ) {
241  // Skip if delete in progress, or if we do not manage dns or mail
242  if ( ! $ds['gesdns'] || ! $ds['gesmx'] || strtoupper($ds['dns_action']) == 'DELETE' ) continue;
243 
244  // Skip if there is no key generated
245  if (! file_exists("/etc/opendkim/keys/$domain/alternc.txt")) continue;
246 
247  // Modif the files.
248  $trusted_host_new.="$domain\n";
249  $keytable_new .="alternc._domainkey.$domain $domain:alternc:/etc/opendkim/keys/$domain/alternc.private\n";
250  $signingtable_new.="$domain alternc._domainkey.$domain\n";
251  }
252  $trusted_host_new.="# END AUTOMATIC FILE. ADD YOUR CHANGES AFTER THIS LINE\n";
253  $keytable_new .="# END AUTOMATIC FILE. ADD YOUR CHANGES AFTER THIS LINE\n";
254  $signingtable_new.="# END AUTOMATIC FILE. ADD YOUR CHANGES AFTER THIS LINE\n";
255 
256  # Get old files
257  $trusted_host_old=@file_get_contents($this->dkim_trusted_host_file);
258  $keytable_old =@file_get_contents($this->dkim_keytable_file);
259  $signingtable_old=@file_get_contents($this->dkim_signingtable_file);
260 
261  # Keep manuel entry
262  preg_match_all('/\#\s*END\ AUTOMATIC\ FILE\.\ ADD\ YOUR\ CHANGES\ AFTER\ THIS\ LINE(.*)/s', $trusted_host_old, $output_array);
263  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
264  $trusted_host_new.=$output_array[1][0];
265  }
266  preg_match_all('/\#\s*END\ AUTOMATIC\ FILE\.\ ADD\ YOUR\ CHANGES\ AFTER\ THIS\ LINE(.*)/s', $keytable_old, $output_array);
267  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
268  $keytable_new.=$output_array[1][0];
269  }
270  preg_match_all('/\#\s*END\ AUTOMATIC\ FILE\.\ ADD\ YOUR\ CHANGES\ AFTER\ THIS\ LINE(.*)/s', $signingtable_old, $output_array);
271  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
272  $signingtable_new.=$output_array[1][0];
273  }
274 
275  // Save if there are some diff
276  if ( $trusted_host_new != $trusted_host_old ) {
277  file_put_contents($this->dkim_trusted_host_file, $trusted_host_new);
278  }
279  if ( $keytable_new != $keytable_old ) {
280  file_put_contents($this->dkim_keytable_file, $keytable_new);
281  }
282  if ( $signingtable_new != $signingtable_old ) {
283  file_put_contents($this->dkim_signingtable_file, $signingtable_new);
284  }
285 
286  }
get_domain_summary($domain=false)
$domain
Definition: dom_import.php:36
system_bind::dummy_for_translation ( )
private

Definition at line 519 of file class_system_bind.php.

519  {
520  _("The zone file of this domain is locked. Contact your administrator.");
521  }
system_bind::get_domain_summary (   $domain = false)
Parameters
globalm_dom $dom
string$domain
Returns
array Retourne un tableau

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().

170  {
171  global $dom;
172 
173  // Use cache if is filled, if not, fill it
174  if (empty($this->cache_domain_summary)) {
175  $this->cache_domain_summary = $dom->get_domain_all_summary();
176  }
177 
178  if ($domain) return $this->cache_domain_summary[$domain];
179  else return $this->cache_domain_summary;
180  }
$domain
Definition: dom_import.php:36
$dom
Definition: whois_test.php:10
system_bind::get_persistent (   $domain)

Return lines that are after ;;; END ALTERNC AUTOGENERATE CONFIGURATION.

Parameters
string$domain
Returns
string

Definition at line 142 of file class_system_bind.php.

References $domain, and get_zone_file().

Referenced by get_zone(), and mail_autoconfig_entry().

142  {
143  if ( ! isset($this->cache_get_persistent[$domain] )) {
144  preg_match_all('/\;\s*END\sALTERNC\sAUTOGENERATE\sCONFIGURATION(.*)/s', $this->get_zone_file($domain), $output_array);
145  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
146  $this->cache_get_persistent[$domain] = $output_array[1][0];
147  } else {
148  $this->cache_get_persistent[$domain] = false;
149  }
150  } // isset
151  return $this->cache_get_persistent[$domain];
152  }
get_zone_file($domain)
$domain
Definition: dom_import.php:36
system_bind::get_serial (   $domain)
Parameters
string$domain
Returns
string

Definition at line 116 of file class_system_bind.php.

References $domain, get_zone_file(), and max.

Referenced by get_zone().

116  {
117  // Return the next serial the domain must have.
118  // Choose between a generated and an incremented.
119 
120  // Calculated :
121  $calc = date('Ymd').'00'."\n";
122 
123  // Old one :
124  $old=$calc; // default value
125  $file = $this->get_zone_file($domain);
126  preg_match_all("/\s*(\d{10})\s+\;\sserial\s?/", $file, $output_array);
127  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
128  $old = $output_array[1][0];
129  }
130 
131  // Return max between newly calculated, and old one incremented
132  return max(array($calc,$old)) + 1 ;
133  }
get_zone_file($domain)
$domain
Definition: dom_import.php:36
system_bind::get_zone (   $domain)

Return a fully generated zone.

Parameters
globalstring $L_FQDN
globalstring $L_NS1_HOSTNAME
globalstring $L_NS2_HOSTNAME
globalstring $L_DEFAULT_MX
globalstring $L_DEFAULT_SECONDARY_MX
globalstring $L_PUBLIC_IP
string$domain
Returns
string

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().

345  {
346  global $L_FQDN, $L_NS1_HOSTNAME, $L_NS2_HOSTNAME, $L_DEFAULT_MX, $L_DEFAULT_SECONDARY_MX, $L_PUBLIC_IP;
347 
348  $zone =$this->get_zone_header();
349  $zone.=implode("\n",$this->conf_from_db($domain));
350  $zone.="\n;;;HOOKED ENTRY\n";
351 
352  $zone.= $this->dkim_entry($domain);
353  $zone.= $this->mail_autoconfig_entry($domain);
354 
355  $zone.="\n;;; END ALTERNC AUTOGENERATE CONFIGURATION\n";
356  $zone.=$this->get_persistent($domain);
357  $domainInfo = $this->get_domain_summary($domain);
358 
359  // FIXME check those vars
360  $zone = strtr($zone, array(
361  "%%fqdn%%"=>"$L_FQDN",
362  "%%ns1%%"=>"$L_NS1_HOSTNAME",
363  "%%ns2%%"=>"$L_NS2_HOSTNAME",
364  "%%DEFAULT_MX%%"=>"$L_DEFAULT_MX",
365  "%%DEFAULT_SECONDARY_MX%%"=>"$L_DEFAULT_SECONDARY_MX",
366  "@@fqdn@@"=>"$L_FQDN",
367  "@@ns1@@"=>"$L_NS1_HOSTNAME",
368  "@@ns2@@"=>"$L_NS2_HOSTNAME",
369  "@@DEFAULT_MX@@"=>"$L_DEFAULT_MX",
370  "@@DEFAULT_SECONDARY_MX@@"=>"$L_DEFAULT_SECONDARY_MX",
371  "@@DOMAINE@@"=>"$domain",
372  "@@SERIAL@@"=>$this->get_serial($domain),
373  "@@PUBLIC_IP@@"=>"$L_PUBLIC_IP",
374  "@@ZONETTL@@"=> $domainInfo['zonettl'],
375  ));
376 
377  return $zone;
378  }
get_domain_summary($domain=false)
mail_autoconfig_entry($domain)
Conditionnal generation autoconfig entry for outlook / thunderbird If entry with the same name allrea...
get_persistent($domain)
Return lines that are after ;;; END ALTERNC AUTOGENERATE CONFIGURATION.
$domain
Definition: dom_import.php:36
conf_from_db($domain=false)
Return the part of the conf we got from the database.
system_bind::get_zone_file (   $domain)
Parameters
string$domain
Returns
string zone file path

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().

98  {
99  // Use cache, fill cache if empty
100  if (!isset($this->cache_zone_file[$domain]) ) {
101  if (file_exists($this->get_zone_file_uri($domain))) {
102  $this->cache_zone_file[$domain] = @file_get_contents($this->get_zone_file_uri($domain));
103  } else {
104  $this->cache_zone_file[$domain] = false;
105  }
106  }
107  return $this->cache_zone_file[$domain] ;
108  }
get_zone_file_uri($domain)
Return full path of the zone configuration file.
$domain
Definition: dom_import.php:36
system_bind::get_zone_file_uri (   $domain)

Return full path of the zone configuration file.

Parameters
string$domain
Returns
string

Definition at line 88 of file class_system_bind.php.

Referenced by delete_zone(), get_zone_file(), reload_named(), and save_zone().

88  {
89  return $this->zone_file_directory.$domain;
90  }
system_bind::get_zone_header ( )
Returns
string

Definition at line 159 of file class_system_bind.php.

Referenced by get_zone().

159  {
160  return file_get_contents($this->ZONE_TEMPLATE);
161  }
system_bind::is_locked (   $domain)

return true if zone is locked

Parameters
string$domain
Returns
boolean

Definition at line 399 of file class_system_bind.php.

References $domain, and get_zone_file().

Referenced by save_zone().

399  {
400  preg_match_all("/(\;\s*LOCKED:YES)/i", $this->get_zone_file($domain), $output_array);
401  if (isset($output_array[1][0]) && !empty($output_array[1][0])) {
402  return true;
403  }
404  return false;
405  }
get_zone_file($domain)
$domain
Definition: dom_import.php:36
system_bind::mail_autoconfig_entry (   $domain)

Conditionnal generation autoconfig entry for outlook / thunderbird If entry with the same name allready exist, skip it.

Parameters
string$domain
Returns
string

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().

311  {
312  $zone= implode("\n",$this->conf_from_db($domain))."\n".$this->get_persistent($domain);
313 
314  $entry='';
315  $domainInfo = $this->get_domain_summary($domain);
316  if ( $domainInfo['gesmx'] ) {
317  // If we manage the mail
318 
319  // Check if there is no the same entry (defined or manual)
320  // can be toto IN A or toto.fqdn.tld. IN A
321  if (! preg_match("/autoconfig(\s|\.".str_replace('.','\.',$domain)."\.)/", $zone )) {
322  $entry.="autoconfig IN CNAME %%fqdn%%.\n";
323  }
324  if (! preg_match("/autodiscover(\s|\.".str_replace('.','\.',$domain)."\.)/", $zone )) {
325  $entry.="autodiscover IN CNAME %%fqdn%%.\n";
326  }
327  } // if gesmx
328  return $entry;
329  }
get_domain_summary($domain=false)
get_persistent($domain)
Return lines that are after ;;; END ALTERNC AUTOGENERATE CONFIGURATION.
$domain
Definition: dom_import.php:36
conf_from_db($domain=false)
Return the part of the conf we got from the database.
system_bind::regenerate_conf (   $all = false)

Regenerate bind configuration and load it.

Parameters
globalm_hooks $hooks
boolean$all
Returns
boolean

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().

490  {
491  global $hooks;
492 
493  foreach ($this->get_domain_summary() as $domain => $ds ) {
494  if ( ! $ds['gesdns'] && strtoupper($ds['dns_action']) == 'OK' ) continue; // Skip if we do not manage DNS and is up-to-date for this domain
495 
496  if ( (strtoupper($ds['dns_action']) == 'DELETE' ) ||
497  (strtoupper($ds['dns_action']) == 'UPDATE' && $ds['gesdns']==false ) // in case we update the zone to disable DNS management
498  ) {
499  $this->delete_zone($domain);
500  continue;
501  }
502 
503  if ( ( $all || strtoupper($ds['dns_action']) == 'UPDATE' ) && $ds['gesdns'] ) {
504  $this->save_zone($domain);
505  $this->reload_zone($domain);
506  $hooks->invoke_scripts("/usr/lib/alternc/reload.d", array('dns_reload_zone', $domain) );
507  }
508  } // end foreach domain
509 
510  $this->dkim_refresh_list();
511  $this->reload_named();
512  return true;
513  }
$hooks
Definition: bootstrap.php:74
reload_zone($domain)
get_domain_summary($domain=false)
delete_zone($domain)
Delete the zone configuration file.
$domain
Definition: dom_import.php:36
dkim_refresh_list()
Refresh DKIM configuration: be sure to list the domain having a private key (and only them) ...
system_bind::reload_named ( )
Parameters
globalm_hooks $hooks
Returns
boolean

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().

457  {
458  global $hooks;
459  // Generate the new conf file
460  $new_named_conf="// DO NOT EDIT\n// This file is generated by Alternc.\n// Every changes you'll make will be overwrited.\n";
461  $tpl=file_get_contents($this->NAMED_TEMPLATE);
462  foreach ($this->get_domain_summary() as $domain => $ds ) {
463  if ( ! $ds['gesdns'] || strtoupper($ds['dns_action']) == 'DELETE' ) continue;
464  $new_named_conf.=strtr($tpl, array("@@DOMAINE@@"=>$domain, "@@ZONE_FILE@@"=>$this->get_zone_file_uri($domain)));
465  }
466 
467  // Get the actual conf file
468  $old_named_conf = @file_get_contents($this->NAMED_CONF);
469 
470  // Apply new configuration only if there are some differences
471  if ($old_named_conf != $new_named_conf ) {
472  file_put_contents($this->NAMED_CONF,$new_named_conf);
473  chown($this->NAMED_CONF, 'bind');
474  chmod($this->NAMED_CONF, 0640);
475  exec($this->RNDC." reconfig");
476  $hooks->invoke_scripts("/usr/lib/alternc/reload.d", array('dns_reconfig') );
477  }
478 
479  return true;
480  }
$hooks
Definition: bootstrap.php:74
get_domain_summary($domain=false)
get_zone_file_uri($domain)
Return full path of the zone configuration file.
$domain
Definition: dom_import.php:36
system_bind::reload_zone (   $domain)
Parameters
string$domain

Definition at line 385 of file class_system_bind.php.

References $domain.

Referenced by regenerate_conf().

385  {
386  exec($this->RNDC." reload ".escapeshellarg($domain), $output, $return_value);
387  if ($return_value != 0 ) {
388  echo "ERROR: Reload zone failed for zone $domain\n";
389  }
390  }
$domain
Definition: dom_import.php:36
system_bind::save_zone (   $domain)
Parameters
globalm_mysql $db
globalm_dom $dom
string$domain
Returns
boolean

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().

415  {
416  global $db, $dom;
417 
418  // Do not save if the zone is LOCKED
419  if ( $this->is_locked($domain)) {
420  $dom->set_dns_result($domain, "The zone file of this domain is locked. Contact your administrator."); // If edit, change dummy_for_translation
421  $dom->set_dns_action($domain, 'OK');
422  return false;
423  }
424 
425  // Save file, and apply chmod/chown
426  $file=$this->get_zone_file_uri($domain);
427  file_put_contents($file, $this->get_zone($domain));
428  chown($file, 'bind');
429  chmod($file, 0640);
430 
431  $dom->set_dns_action($domain, 'OK');
432  return true; // fixme add tests
433  }
global $db
Definition: bootstrap.php:22
get_zone_file_uri($domain)
Return full path of the zone configuration file.
is_locked($domain)
return true if zone is locked
$domain
Definition: dom_import.php:36
$dom
Definition: whois_test.php:10
get_zone($domain)
Return a fully generated zone.

Member Data Documentation

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.


The documentation for this class was generated from the following file: