plesk / ext-slave-dns-manager

The extension for managing a remote slave DNS server via rndc protocol (bind).
Other
17 stars 12 forks source link

Support split-horizon dns and configurable file paths #7

Closed scorgatelli closed 7 years ago

scorgatelli commented 9 years ago

Hi, Our name servers are running split horizon so I need the ability to add the domain to a specified view. Also, it would be nice to be able to customize the file path. Both of these should be configurable on the slave configuration page.

For example, where the call is currently:

     $this->_call($slave, "addzone {$domain} \"{ type slave; file \\\"{$domain}\\\"; masters { {$this->getServerIP()}; }; };\"");

I need it to look something like

     $this->_call($slave, "addzone {$domain} in public \"{ type slave; file \\\"slaves/{$domain}\\\"; masters { {$this->getServerIP()}; }; };\"");

The actual view and path would come from the slave configuration.

Thank you