Domain Header
Data · DomainHeader, DnsRecordTable
The top of a domain's page, above its DnsRecordTable: the name, registrar and DNS host, the expiry (days left worked out from expires; under 30 days warns, under 7 is danger, autoRenew noted), the SSL state with issuer and end date, and the mail lights MX, SPF, DKIM and DMARC. onOpenCheck(check) makes each cell a button that opens what was found; actions go on the right. DomainList rows link with href / linkAs.
northwind.example
Mail
| Content | TTL | Proxy | |||
|---|---|---|---|---|---|
| A | @ | 203.0.113.7 | Auto | Proxied | |
| MX | @ | 10 mx1.mail.example | 3600 | — | |
| TXT | @ | v=spf1 include:_spf.mail.example ~all | 3600 | — |
Props
DomainHeader
| Prop | Type | Notes |
|---|---|---|
name | string | Required |
registrar? | ReactNode | |
dns? | ReactNode | |
expires? | Date | string | number | Expiry date (formatted in the provider's locale). |
days? | number | Days until expiry; worked out from `expires` when omitted. Under 30 warns, under 7 is danger. |
autoRenew? | boolean | |
ssl? | DomainHeaderCheck & { expires?: Date | string | number; issuer?: ReactNode } | |
mail? | { mx?: DomainHeaderCheck; spf?: DomainHeaderCheck; dkim?: DomainHeaderCheck; dmarc?: DomainHeaderCheck; } | The mail lights. |
onOpenCheck? | (check: "mx" | "spf" | "dkim" | "dmarc" | "ssl" | "expiry") => void | |
actions? | ReactNode | Buttons on the right (renew, add record). |
now? | Date | string | number | What counts as today for `days` (default now). |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
DnsRecordTable
| Prop | Type | Notes |
|---|---|---|
records | DnsRecord[] | Required |
rowMenu? | (r: DnsRecord) => (MenuItem | "-")[] | |
selectable? | boolean | |
bulkActions? | BulkAction<DnsRecord>[] | |
toolbar? | ReactNode | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |