bind_service.inc 907 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

/**
 * Implementation of the DNS service through BIND9
 *
 * A lot of this is inspired by the Apache implementation of the HTTP service.
 */
8
class provisionService_dns_bind extends provisionService_dns {
9
  protected $application_name = 'bind';
Adrian Rossouw's avatar
Adrian Rossouw committed
10

11
  protected $has_restart_cmd = TRUE;
12
  private $zone_cache = array();
13 14 15 16 17 18 19
  
  static function bind_default_restart_cmd() {
    return "/etc/init.d/named restart";
  }

  function default_restart_cmd() {
    return provisionService_dns_bind::bind_default_restart_cmd();
20 21
  }

Adrian Rossouw's avatar
Adrian Rossouw committed
22 23
  function init_server() {
    parent::init_server();
Adrian Rossouw's avatar
Adrian Rossouw committed
24
    $this->configs['server'][] = 'provisionConfig_bind_server';
25
    $this->configs['zone'][] = 'provisionConfig_bind_zone';
26 27
  }

28
  function parse_configs() {
29
    $this->restart();
30
  }
31
}
32

33
class provisionConfig_bind_zone extends provisionConfig_dns_zone {
34
}
35

Adrian Rossouw's avatar
Adrian Rossouw committed
36
class provisionConfig_bind_server extends provisionConfig_dns_server {
anarcat's avatar
anarcat committed
37
}