dnsmasq.php

Classes

File

dns/Provision/Service/dns/dnsmasq.php
View source
  1. <?php
  2. class Provision_Service_dns_dnsmasq extends Provision_Service_dns {
  3. protected $application_name = 'dnsmasq';
  4. protected $has_restart_cmd = TRUE;
  5. function default_restart_cmd() {
  6. return 'sudo /etc/init.d/dnsmasq restart';
  7. }
  8. function init_server() {
  9. parent::init_server();
  10. $this->configs['server'][] = 'Provision_Config_Dnsmasq_Server';
  11. $this->configs['zone'][] = 'Provision_Config_Dnsmasq_Zone';
  12. $this->configs['host'][] = 'Provision_Config_Dnsmasq_Host';
  13. }
  14. function parse_configs() {
  15. $this->restart();
  16. }
  17. function create_host($host = NULL) {
  18. parent::create_host($host);
  19. $this->create_config('host');
  20. }
  21. }