2015-12-13 09:34:12 +00:00
{% extends "base.html" %}
{% block title %}< title > DNS Control Panel - Add Domain< / title > {% endblock %}
{% block dashboard_stat %}
2016-04-22 00:37:33 +00:00
<!-- Content Header (Page header) -->
< section class = "content-header" >
< h1 >
Domain
< small > Create new< / small >
< / h1 >
< ol class = "breadcrumb" >
< li > < a href = "{{ url_for('dashboard') }}" > < i class = "fa fa-dashboard" > < / i > Home< / a > < / li >
< li > < a href = "{{ url_for('dashboard') }}" > Domain< / a > < / li >
< li class = "active" > Add Domain< / li >
< / ol >
< / section >
2015-12-13 09:34:12 +00:00
{% endblock %}
{% block content %}
2016-04-24 03:04:03 +00:00
< section class = "content" >
2016-04-22 00:37:33 +00:00
< div class = "row" >
< div class = "col-md-4" >
< div class = "box box-primary" >
< div class = "box-header with-border" >
< h3 class = "box-title" > Create new domain< / h3 >
< / div >
<!-- /.box - header -->
<!-- form start -->
2016-04-24 19:43:08 +00:00
< form role = "form" method = "post" action = "{{ url_for('domain_add') }}" >
2016-04-22 00:37:33 +00:00
< div class = "box-body" >
< div class = "form-group" >
2016-04-24 19:43:08 +00:00
< input type = "text" class = "form-control" name = "domain_name" id = "domain_name" placeholder = "Enter a valid domain name (required)" >
2016-04-22 00:37:33 +00:00
< / div >
< div class = "form-group" >
< label > Type< / label >
< div class = "radio" >
< label >
< input type = "radio" name = "radio_type" id = "radio_type_native" value = "native" checked > Native
< / label >
< label >
< input type = "radio" name = "radio_type" id = "radio_type_master" value = "master" > Master
< / label >
< label >
2016-04-25 23:56:59 +00:00
< input type = "radio" name = "radio_type" id = "radio_type_slave" value = "slave" > Slave
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< / div >
2016-04-26 00:07:02 +00:00
< div class = "form-group" style = "display: none;" id = "domain_master_address_div" >
< input type = "text" class = "form-control" name = "domain_master_address" id = "domain_master_address" placeholder = "Enter valid master ip addresses (separated by commas)" >
< / div >
2016-04-22 00:37:33 +00:00
< div class = "form-group" >
< label > SOA-EDIT-API< / label >
< div class = "radio" >
< label >
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_off" value = "OFF" checked > (OFF)
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_inception_increment" value = "INCEPTION-INCREMENT" > INCEPTION-INCREMENT
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_inception" value = "INCEPTION" > INCEPTION
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_increment_week" value = "INCREMENT-WEEK" > INCREMENT-WEEK
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_increment_weeks" value = "INCREMENT-WEEKS" > INCREMENT-WEEKS
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_epoch" value = "EPOCH" > EPOCH
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< div class = "radio" >
< label >
2016-04-24 19:43:08 +00:00
< input type = "radio" name = "radio_type_soa_edit_api" id = "radio_inception_epoch" value = "INCEPTION-EPOCH" > INCEPTION-EPOCH
2016-04-22 00:37:33 +00:00
< / label >
< / div >
< / div >
< / div >
<!-- /.box - body -->
2015-12-13 09:34:12 +00:00
2016-04-22 00:37:33 +00:00
< div class = "box-footer" >
< button type = "submit" class = "btn btn-primary" > Submit< / button >
< button type = "submit" class = "btn btn-default" onclick = "window.location.href='{{ url_for('dashboard') }}'" > Cancel< / button >
< / div >
< / form >
< / div >
<!-- /.box -->
< / div >
< div class = "col-md-8" >
< div class = "box box-primary" >
< div class = "box-header with-border" >
< h3 class = "box-title" > Help with creating a new domain< / h3 >
< / div >
< div class = "box-body" >
< dl class = "dl-horizontal" >
< dt > Domain name< / dt >
< dd > Enter your domain name in the format of name.tld (eg. powerdns-admin.com). You can also enter sub-domains to create a sub-root zone (eg. sub.powerdns-admin.com) in case you want to delegate sub-domain management to specific users.< / dd >
< dt > Type< / dt >
< dd > The type decides how the domain will be replicated across multiple DNS servers.
< ul >
< li >
Native - PowerDNS will not perform any replication. Use this if you only have one PowerDNS server or you handle replication via your backend (MySQL).
< / li >
< li >
Master - This PowerDNS server will serve as the master and will send zone transfers (AXFRs) to other servers configured as slaves.
< / li >
< li >
Slave - This PowerDNS server will serve as the slave and will request and receive zone transfers (AXFRs) from other servers configured as masters.
< / li >
< / ul >
< / dd >
< dt > SOA-EDIT-API< / dt >
< dd > The SOA-EDIT-API setting defines when and how the SOA serial number will be updated after a change is made to the domain.
< ul >
< li >
(OFF) - Not set
< / li >
< li >
INCEPTION-INCREMENT -
< / li >
< li >
INCEPTION -
< / li >
< li >
INCREMENT-WEEK -
< / li >
< li >
INCREMENT-WEEKS -
< / li >
< li >
EPOCH -
< / li >
< li >
INCEPTION-EPOCH -
< / li >
< / ul >
< / dd >
< / dl >
< / div >
< / div >
< / div >
< / div >
2016-04-24 03:04:03 +00:00
< / section >
2016-04-26 00:07:02 +00:00
{% endblock %}
{% block extrascripts %}
< script >
$("input[name=radio_type]").change(function() {
var type = $(this).val();
if (type == "slave") {
$("#domain_master_address_div").show();
} else {
$("#domain_master_address_div").hide();
}
});
< / script >
2015-12-13 09:34:12 +00:00
{% endblock %}