1 parent
8c4d463f1e
commit
de13d851a8
75 files changed
+4656
-442
No files matched your search
@@ -0,0 +1,11 @@
|
||||
{{define "content"}}
|
||||
<section class="panel"><div class="panel-head"><div><h2>Compare SOA serials</h2><p>Read-only lookup of the same zone on each managed EasyDNS server.</p></div><a class="btn-ui btn-small" href="/servers">Back to servers</a></div>
|
||||
<div class="panel-body"><form class="toolbar" method="get" action="/servers/compare"><div class="field-row compare-field"><label for="compare-zone">Zone name</label><input class="field mono" id="compare-zone" name="zone" value="{{.Data.CompareZone}}" placeholder="example.com." maxlength="253" required></div><button type="submit" class="btn-ui btn-primary-ui">Compare zone</button></form></div>
|
||||
{{if .Data.Comparisons}}<div class="comparison-reference">{{if .Data.PrimarySerial}}Reference: Primary label · serial <strong class="mono">{{.Data.PrimarySerial}}</strong>{{else}}Primary reference serial unavailable. This comparison cannot determine whether serials match the Primary node.{{end}}</div>
|
||||
<div class="table-scroll"><table class="data-table"><thead><tr><th>SERVER</th><th>PANEL LABEL</th><th>REPORTED ZONE ROLE</th><th>SOA SERIAL</th><th>ZONE STATE</th><th>VERSUS PRIMARY LABEL</th><th class="right">ACTION</th></tr></thead><tbody>
|
||||
{{range .Data.Comparisons}}<tr><td class="entity">{{.Node.Name}}</td><td><span class="tag {{if eq .Node.Role "primary"}}green{{else}}muted-tag{{end}}">{{.Node.Role}}</span></td><td>{{if .Present}}{{.Zone.Kind}}{{else}}—{{end}}</td><td class="mono">{{.Serial}}</td><td>{{if .Present}}<span class="dot {{if or .Zone.Expired (not .Zone.Loaded)}}warn{{else}}ok{{end}}"></span>{{.Zone.StateText}}{{else}}<span class="muted">{{.Error}}</span>{{end}}</td><td>{{if .Present}}{{if $.Data.PrimarySerial}}{{if .MatchesPrimary}}<span class="success">Serial matches</span>{{else}}<span class="warning">Serial differs</span>{{end}}{{else}}<span class="subtle">No primary reference</span>{{end}}{{else}}—{{end}}</td><td class="right">{{if .Present}}<form method="post" action="/servers/select"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><input type="hidden" name="server_id" value="{{.Node.ID}}"><input type="hidden" name="next" value="{{zoneurl $.Data.CompareZone}}"><button type="submit" class="btn-ui btn-small">Open zone</button></form>{{else}}—{{end}}</td></tr>{{end}}
|
||||
</tbody></table></div>
|
||||
{{else}}<div class="panel-body"><p class="muted">Enter a DNS zone to inspect its state and serial number on every configured server. This uses the native <span class="mono">GET /api/v1/zones/{zone}</span> endpoint on each instance.</p></div>{{end}}
|
||||
</section>
|
||||
<div class="notice-inline mt-panel">Different SOA serials are an observation, not proof of a failed transfer: clocks, propagation, refresh intervals, and RFC 1982 serial arithmetic may matter. This panel does not initiate replication automatically. Open a secondary zone to use its existing “Sync now” operation.</div>
|
||||
{{end}}
|
||||
Reference in new issue
Block a user