# resend添加域名填坑

> 本文首发在[我的xlog站点](https://xlog.ooim.xyz)
> 
> 在resend 添加域名后一直都是带验证状态，等了五天，忍不住了。看官方文档，竟然有在另一个地方有小字说明。晕

## 目标

添加域名，才能成功发送邮件

## 过程

1. 直接无脑复制提示的字段到DNS服务商中添加
    
2. 发现长时间没生效
    
3. 看[官方文档](https://resend.com/docs/dashboard/domains/cloudflare#add-txt-dkim-records) 发现坑
    
4. 填补好
    

```bash
Omit your domain from the record values in Resend when you paste.
Instead of bounces.example.com, paste only bounces
(or bounces.subdomain if you’re using a subdomain).
```

也就是说只要添加`bounces.subdomain` ，而不是`bounces.subdomain.domain`

```bash
Omit your domain from the record values in Resend when you paste.
Instead of resend._domainkey.example.com, paste only resend._domainkey
(or resend._domainkey.subdomain if you’re using a subdomain).
```

子域名不需要再加入字段中

![](https://mintlify.s3-us-west-1.amazonaws.com/resend/images/dashboard-domains-resend-dkim.png align="left")

## 总结

* RTFM read the fuxking manual 果然是真理😁
    
* 不要盲目相信提示的信息
