digitalocean / digitalocean/doctl
How to update DNS records? Receiving "Data needs to end with a dot (.)"
Open
bug
Needs Investigation
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
**Describe the Issue:**
See: https://www.digitalocean.com/community/questions/how-to-update-dns-records-receiving-data-needs-to-end-with-a-dot
The issue is in the API but is surfaced through `doctl` too:
```bash
doctl compute domain records update ${DOMAIN} \
--record-id ${ID} \
--record-ttl 43200
Error: PUT https://api.digitalocean.com/v2/domains/.../records/...: 422 Data needs to end with a dot (.)
```
The workaround works when applied to `doctl` too (adding `--record-data`):
```bash
doctl compute domain records update ${DOMAIN} \
--record-id ${ID} \
--record-ttl 43200 \
--record-data "${DATA}."
```
Contributor guide
Assessment
This issue has not been assessed yet.