- added protocol config parameter and handling for it

- changed nameserver entries in config to be dymanic
- changed display and parsing of NS-entries from config or from template to be dynamic
This commit is contained in:
bfbones 2015-03-02 10:10:46 +01:00
parent 94f722b4d5
commit 0a09deb50a
3 changed files with 29 additions and 43 deletions

View file

@ -5,6 +5,7 @@ $apipass = ''; # The PowerDNS API-user password or the PowerDNS-API key
$apiip = ''; # The IP of the PowerDNS API
$apiport = '8081'; # The port of the PowerDNS API
$apisid = 'localhost'; # PowerDNS's :server_id
$apiprotocol = 'https://'; # protocol used to connect with trailing slashs
$allowzoneadd = FALSE; # Allow normal users to add zones
### AUTHENTICATION ###
@ -47,6 +48,6 @@ $templates[] = array(
$defaults['soa_edit'] = 'INCEPTION-INCREMENT';
$defaults['soa_edit_api'] = 'INCEPTION-INCREMENT';
$defaults['defaulttype'] = 'Master'; # Choose between 'Native' or 'Master'
$defaults['primaryns'] = 'unconfigured.primaryns'; # The value of the first NS-record
$defaults['secondaryns'] = 'unconfigured.secondaryns'; # The value of the second NS-record
$defaults['ns'][0] = 'unconfigured.primaryns'; # The value of the first NS-record
$defaults['ns'][1] = 'unconfigured.secondaryns'; # The value of the second NS-record
$defaults['ttl'] = 3600; # Default TTL for records