Skip to content
Domain SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

DnsRecord

DnsRecord type reference: record type, name, value, TTL, purpose (routing, ownership, certificate), and status, ready to show in a custom-domain settings UI.

interface DnsRecord {
  type: "A" | "AAAA" | "CNAME" | "TXT" | "CAA" | "ALIAS" | "ANAME";
  name: string;
  value: string;
  ttl?: number;
  purpose: "routing" | "ownership" | "certificate" | "other";
  required: boolean;
  status: "pending" | "valid" | "invalid" | "unknown";
  description?: string;
}

Read next: Display DNS records correctly.

Last updated on