commit
8c4d463f1e
96 files changed
+3319
No files matched your search
@@ -0,0 +1,9 @@
|
||||
{{define "content"}}<div class="form-layout"><section class="panel"><div class="panel-head"><div><h2>{{if eq .Data.Action "import"}}Import complete zone file{{else}}Create from nameservers{{end}}</h2><p>Primary zones only · validated before activation</p></div></div>
|
||||
<div class="mode-tabs"><a class="tab {{if ne .Data.Action "import"}}active{{end}}" href="/zones/new">From nameservers</a><a class="tab {{if eq .Data.Action "import"}}active{{end}}" href="/zones/import">From zone file</a></div>
|
||||
<form method="post" action="/zones" class="form-body"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="mode" value="{{.Data.Action}}">
|
||||
<div class="field-row"><label class="field-label" for="zoneName">Zone name <span class="required">*</span></label><input id="zoneName" class="field" type="text" name="name" required placeholder="example.org" value="{{selectval .Data.Form "name"}}"><small>Use a full DNS zone name. Creating a secondary is not supported by this API.</small></div>
|
||||
{{if eq .Data.Action "import"}}<div class="field-row"><label class="field-label" for="zoneFile">Complete zone file <span class="required">*</span></label><textarea id="zoneFile" class="field mono code-input" name="zone_file" rows="13" spellcheck="false" required placeholder="$TTL 3600 @ IN SOA ns1.example.org. hostmaster.example.org. 1 3600 900 1209600 300 @ IN NS ns1.example.org.">{{selectval .Data.Form "zone_file"}}</textarea><small>Paste original zone file content you own. EasyDNS does not expose zone files for download via REST.</small></div>
|
||||
{{else}}<div class="field-row"><label class="field-label" for="zoneNS">Nameservers <span class="required">*</span></label><textarea id="zoneNS" class="field mono" name="ns" rows="4" placeholder="ns1.example.org. ns2.example.org." required>{{selectval .Data.Form "ns"}}</textarea><small>One FQDN per line; the API generates a minimal SOA/NS zone.</small></div><div class="field-row"><label class="field-label" for="hostmaster">SOA hostmaster</label><input id="hostmaster" class="field mono" name="hostmaster" value="{{selectval .Data.Form "hostmaster"}}" placeholder="hostmaster.example.org."></div>{{end}}
|
||||
<div class="form-columns"><div class="field-row"><label class="field-label" for="transferAcl">Transfer ACL (optional)</label><textarea class="field mono" id="transferAcl" name="transfer_acl" rows="3" placeholder="192.0.2.0/24">{{selectval .Data.Form "transfer_acl"}}</textarea><small>Networks, one per line.</small></div><div class="field-row"><label class="field-label" for="notify">NOTIFY targets (optional)</label><textarea class="field mono" id="notify" name="notify" rows="3" placeholder="192.0.2.20:53">{{selectval .Data.Form "notify"}}</textarea><small>IP:port socket addresses, one per line.</small></div></div>
|
||||
<div class="form-actions"><a href="/zones" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit"><svg class="ico"><use href="/static/icons.svg#plus"/></svg>Create primary zone</button></div>
|
||||
</form></section><aside class="panel guide"><div class="panel-head"><h2>Creation details</h2></div><div class="panel-body"><p>This is a configuration-changing operation. EasyDNS validates the zone, persists it in the API overlay and reloads the runtime.</p><div class="data-row"><span>Already exists</span><strong>409</strong></div><div class="data-row"><span>Invalid zone file</span><strong>422</strong></div><div class="data-row"><span>Invalid request</span><strong>400</strong></div><div class="notice-inline mt-panel">The nameservers/hostmaster form does not create secondary zones.</div></div></aside></div>{{end}}
|
||||
Reference in new issue
Block a user