# Add a domain

> Verify your domain with SPF, DKIM and an ownership record.

Verifying a domain lets you send from any address on it, to anyone. It also proves to inbox providers that your mail is really yours, which is the single biggest factor in landing in the inbox.

## Add the domain

1. **Choose a subdomain**: We recommend a subdomain such as `mail.yourapp.com`. It keeps your sending reputation separate from the mail your team sends from the root domain.

2. **Add it in Sendtern**: Open [Domains](https://sendtern.com/dashboard/domains), press **Add domain** and enter the name. Sendtern shows the TXT records for ownership, DKIM and SPF.

3. **Create the records**: Copy each record into your DNS provider exactly as shown. Most providers apply changes within minutes, a few take up to 48 hours.

4. **Verify**: Press **Verify DNS**, or call `POST /domains/:id/verify`. Sendtern checks each record and shows its status.

## DNS records

| Name | Type | Purpose |
| --- | --- | --- |
| `_sendtern.<domain>` | TXT | Proves you own the domain |
| `<domain>` | TXT | SPF: publishes the IP authorized to send for the domain |
| `<selector>._domainkey.<domain>` | TXT | DKIM: a public key that verifies every signed message |

## Verification states

| Status | Meaning |
| --- | --- |
| `pending` | Ownership or DKIM still needs verification |
| `verified` | Ownership and DKIM are confirmed. You can send from this domain |

## Provider tips

- Check whether your DNS provider expects a full hostname or a name relative to your zone.
- If your provider splits a long DKIM value, keep the segments in the same TXT record.
- If the domain already has an SPF record, merge the `ip4:` mechanism shown in the dashboard into that record.

## Troubleshooting

Check what the world sees with `dig`. The value must match the dashboard exactly, with no extra spaces or quotes.

```
dig TXT _sendtern.mail.example.com +short
dig TXT mail.example.com +short
```

> **note:** After editing DNS, run verification again from the dashboard.
