ACME DNS

{#if snapshot}

{snapshot.version ? 'Saved on' : 'Server'} {snapshot.server.address} ·

{/if} {#if readError} {/if} {#if snapshot} {#if editor.readOnly} {:else if editor.initialized} {#if !snapshot.version}

No DNS configuration saved. Add the zone and nameservers to create it.

{/if} {#if editor.stale} {/if} {#if editor.stale}
Latest saved values {#if snapshot.config}

Zone {snapshot.config.zone}

{#each snapshot.config.nameservers as ns}
{ns.host}
{ns.addresses.join(', ')}
{/each}
{:else}

No DNS configuration saved.

{/if}
{/if}
DNS records
{ editor.form.setFieldValue('zone', event.currentTarget.value); editor.edited(); }} autocomplete="off" autocapitalize="none" spellcheck={false} required readonly={Boolean(snapshot.config)} aria-invalid={Boolean(fields.zone)} aria-describedby={fields.zone ? 'dns-zone-error' : undefined} /> {#if fields.zone}

{fields.zone}

{/if}

Nameservers

{#if fields.nameservers}

{fields.nameservers}

{/if}
{#each draft.nameservers as ns, index} {@const hostError = fieldError(`nameservers.${index}.host`)} {@const addressError = fieldError(`nameservers.${index}.addresses`)}
{ editor.form.setFieldValue(`nameservers[${index}].host`, event.currentTarget.value); editor.edited(); }} autocomplete="off" autocapitalize="none" spellcheck={false} required aria-invalid={Boolean(hostError)} aria-describedby={hostError ? `dns-host-error-${index}` : undefined} /> {#if hostError}

{hostError}

{/if}

One address per line.

{#if addressError}

{addressError}

{/if}
{/each}
{#if editor.dirty && !editor.stale}{/if} {#if editor.dirty}Unsaved changes{/if}
{/if} {:else if editor.query.isFetching}
Loading DNS configuration…
{/if}