DNS Record Guard

DNS Record Guard is a copy-paste React component that stops deleted mx record stopped company email before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/dns-record-guard
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsDeleted MX record stopped company email

Was this component page useful?

How do I install DNS Record Guard?

pnpm dlx shadcn@latest add @bollard/dns-record-guard

The files land in your project. They're yours to edit.

What input mistakes does DNS Record Guard catch?

  • Removing MX records that receive company email
  • SPF senders dropped, or SPF pushed past the 10 DNS-lookup limit
  • A DKIM selector removed while DMARC enforces
  • A CNAME at the zone root or beside other records, and names left pointing at nothing
  • Long TTLs, with "lower TTL first" and a countdown until caches clear

What props does DNS Record Guard accept?

DnsRecordGuard props
PropTypeDefault
zone* (required)

The zone's root domain, e.g. "acme.com".

string—
records* (required)

Every record in the zone as it is now, so the guard can see what depends on the change.

DnsRecord[]—
change* (required)

The edit or delete being confirmed.

DnsChange—
onConfirm* (required)

Applies the change. Return a promise to show a pending state; a rejection is caught.

(change: DnsChange) => void | Promise<void>—
onCancel

Called when the user cancels.

() => void—
onLowerTtl

Saves a lower TTL on the record now, so the real change later spreads in minutes. Hides the fix when omitted.

(record: DnsRecord, ttl: number) => void | Promise<void>—
safeTtl

TTL (seconds) the one-tap fix sets.

number300
slowTtl

Records cached longer than this (seconds) get the "lower TTL first" suggestion.

number3600
title

Heading; receives the change and record.

(change: DnsChange, record: DnsRecord) => React.ReactNode(c, r) => `${c.kind === "delete" ? "Delete" : "Save"} ${r…
confirmLabel

Confirm button text.

(change: DnsChange, breaking: number) => string(c, breaking) => (breaking ? `${c.kind === "delete" ? "De…
pendingLabel

Confirm button text while onConfirm runs.

string"Saving…"
cancelLabel

Cancel button text.

string"Cancel"
safeText

Shown when no problems are found.

string"Nothing else in this zone depends on this record."
spreadText

Text estimating how long the change takes to spread.

(ttl: string) => string(ttl) => `Takes up to ${ttl} to reach everyone: resolvers…
lowerLabel

Text for the lower-TTL-first button.

(ttl: string) => string(ttl) => `Lower TTL to ${ttl} first`
waitText

Text shown while waiting for old caches to expire.

(oldTtl: string, time: string) => string(oldTtl, time) => `TTL lowered. Caches holding the ${oldT…
clearedText

Shown once old caches have expired.

(ttl: string) => string(ttl) => `Old caches have cleared. This change now spread…

* required. Also accepts the native props of <section> (className, aria-*, data-*…), passed through to it.

How is DNS Record Guard accessible?

  • Dialog content is labelled by its title
  • Findings are aria-live="polite" and say "Breaks:" or "Risk:" in text
  • The TTL countdown is aria-live="polite"; its progress bar is aria-hidden

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Validate zone changes at your DNS provider and keep a record of the previous zone so changes can be rolled back.

  • Checks only the records you pass; it doesn't query live DNS
  • Can't know which third-party senders still need SPF or DKIM

What validation rules apply to DNS Record Guard?

Rules last verified:

Informational. Checked the SPF limit of 10 lookup terms and that a CNAME label may hold no other data. DKIM/DMARC escalation rules were not checked against a standard. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does DNS Record Guard stop?

Deleted MX record stopped company email

Also known as

dns · mx record · spf · dkim · dmarc · cname · ttl · cloudflare dns

Field type

What dependencies does DNS Record Guard require?

DNS Record Guard facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameDNS Record Guard
Registry identifier@bollard/dns-record-guard
Install commandnpx shadcn@latest add @bollard/dns-record-guard
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about DNS Record Guard

How does DNS Record Guard protect destructive mutations?

DNS Record Guard prevents deleted MX record stopped company email. Enforces deliberate friction against Removing MX records that receive company email, SPF senders dropped, or SPF pushed past the 10 DNS-lookup limit, A DKIM selector removed while DMARC enforces, A CNAME at the zone root or beside other records, and names left pointing at nothing, Long TTLs, with "lower TTL first" and a countdown until caches clear. Limitation: authorize dns-record-guard mutations on the server.

How do I install dns-record-guard with shadcn?

Run `npx shadcn@latest add @bollard/dns-record-guard`. Sources added: registry/default/dns-record-guard/dns-checks.ts, registry/default/dns-record-guard/dns-record-guard.tsx. Package requirements: lucide-react.

What props customize DNS Record Guard?

DNS Record Guard accepts `zone`, `records`, `change`, `onConfirm`, `onCancel`. Configures dns, mx record, spf behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of dns-record-guard?

Checks only the records you pass; it doesn't query live DNS. Can't know which third-party senders still need SPF or DKIM Server requirement: Validate zone changes at your DNS provider and keep a record of the previous zone so changes can be rolled back.

How does DNS Record Guard meet accessibility guidelines?

Dialog content is labelled by its title. Findings are aria-live="polite" and say "Breaks:" or "Risk:" in text. The TTL countdown is aria-live="polite"; its progress bar is aria-hidden. Minimizes errors: dns change broke email, deleted mx record.

Which components pair with DNS Record Guard?