---
title: DNS records UI component
description: Add a copy-ready React DNS records table to your SaaS domain settings page so customers can configure routing, ownership, and certificates.
---

<DnsRecordsPreview />

## Install

```bash title="Terminal"
bunx --bun shadcn@latest add https://domain-sdk.dev/r/dns-records-table.json
```

## Usage

Pass the normalized records returned by Domain SDK. Your application owns refreshing and persistence.

```tsx title="domain-settings.tsx"
import { DnsRecordsTable } from "@/components/domain/dns-records-table";

<DnsRecordsTable records={domain.records} issues={domain.issues} defaultFilter="required" />;
```

The component uses shadcn `Table`, `Badge`, `Button`, and `NativeSelect` with Hugeicons. Names and values are full-cell copy targets, optional records can be filtered, and every copy is confirmed through a polite live region.

When your server discovers a supported [Domain Connect](/blog/domain-connect) path, place the separately installable [One-click DNS Setup](/docs/components/one-click-dns-setup) component before this manual fallback.
