diff --git a/includes/config.inc.php-dist b/includes/config.inc.php-dist
index 6a4e3fd..92b8ba2 100644
--- a/includes/config.inc.php-dist
+++ b/includes/config.inc.php-dist
@@ -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
diff --git a/index.php b/index.php
index 1570661..0c1dc4a 100644
--- a/index.php
+++ b/index.php
@@ -442,23 +442,21 @@ $(document).ready(function () {
edit: false,
inputClass: 'template'
},
- nameserver1: {
- title: 'Pri. Nameserver',
+ nameserver: {
+ title: 'Nameservers',
create: true,
list: false,
edit: false,
input: function(data) {
var $template = data.form.find('#Edit-template');
- var $elem = $('');
- $elem.val();
+ var ns_form = ' '; ?>';
+ var $elem = $('