{{define "content"}} {{$z := .Data.Zone}}{{$new := .Data.IsNew}}{{$kind := .Data.Kind}} {{$isReverse := hasPrefix $kind "reverse"}}

{{if $new}}Create a zone{{else}}Edit {{trimDot $z.Name}}{{end}}

Zone identity
{{if $new}}
{{if $isReverse}}
Enter the subnet and the matching in-addr.arpa or ip6.arpa zone name is worked out for you. Leave the zone name below blank to use it.
{{end}} {{else}} {{end}}
The apex of the zone. A trailing dot is added automatically.
Start of authority

The SOA record is maintained for you. These values are what it will contain.

Stored in the SOA in its DNS form.
Seconds
SOA minimum
Serial number
Current serial
{{default 1 $z.Serial}}
The serial advances on every record change, which is what secondary servers watch to know a zone was updated.
Only needed when migrating a zone from another server that is already at a higher serial. Tick the box above for this value to be used.
{{if not $new}} {{end}}
Cancel
{{end}}