digitalocean / digitalocean/doctl

How to update DNS records? Receiving "Data needs to end with a dot (.)"

Open
#919 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.