bind.php

Classes

Namesort descending Description
Provision_Service_dns_bind Implementation of the DNS service through BIND9

File

dns/Provision/Service/dns/bind.php
View source
  1. <?php
  2. /**
  3. * Implementation of the DNS service through BIND9
  4. *
  5. * A lot of this is inspired by the Apache implementation of the HTTP service.
  6. */
  7. class Provision_Service_dns_bind extends Provision_Service_dns {
  8. protected $application_name = 'bind';
  9. protected $has_restart_cmd = TRUE;
  10. private $zone_cache = array();
  11. static function bind_default_restart_cmd() {
  12. return "rndc reload";
  13. }
  14. function default_restart_cmd() {
  15. return Provision_Service_dns_bind::bind_default_restart_cmd();
  16. }
  17. function init_server() {
  18. parent::init_server();
  19. $this->configs['server'][] = 'Provision_Config_Bind_Server';
  20. $this->configs['zone'][] = 'Provision_Config_Bind_Zone';
  21. }
  22. function parse_configs() {
  23. $status = $this->restart();
  24. return $status && parent::parse_configs();
  25. }
  26. }