Skip to content

Conversation

@jooola
Copy link
Member

@jooola jooola commented Oct 7, 2025

Add support for the new DNS API.

The DNS API is currently in beta.

See the DNS API beta changelog for more details.

@jooola jooola requested a review from a team as a code owner October 7, 2025 08:31
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 62.04025% with 547 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.85%. Comparing base (d1c32c3) to head (1302e09).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/cmd/zone/rrset/set_records.go 46.15% 45 Missing and 11 partials ⚠️
internal/cmd/zone/create.go 54.00% 38 Missing and 8 partials ⚠️
internal/cmd/zone/rrset/rrset.go 55.10% 41 Missing and 3 partials ⚠️
internal/hcapi2/zone.go 9.75% 37 Missing ⚠️
internal/cmd/zone/rrset/enable_protection.go 52.23% 22 Missing and 10 partials ⚠️
internal/cmd/zone/change_primary_nameservers.go 70.65% 17 Missing and 10 partials ⚠️
internal/cmd/zone/list.go 57.14% 26 Missing and 1 partial ⚠️
internal/cmd/zone/describe.go 61.76% 20 Missing and 6 partials ⚠️
internal/cmd/zone/import_zonefile.go 60.00% 15 Missing and 9 partials ⚠️
internal/cmd/zone/rrset/add_records.go 63.79% 14 Missing and 7 partials ⚠️
... and 15 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1182      +/-   ##
==========================================
- Coverage   70.41%   69.85%   -0.57%     
==========================================
  Files         245      271      +26     
  Lines       10821    12262    +1441     
==========================================
+ Hits         7620     8566     +946     
- Misses       2515     2897     +382     
- Partials      686      799     +113     
Flag Coverage Δ
e2e 52.47% <53.05%> (+0.75%) ⬆️
unit 63.98% <58.91%> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add support for the new [DNS API](https://docs.hetzner.cloud/reference/cloud#dns).

The DNS API is currently in **beta**.

See the [DNS API beta changelog](https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta) for more details.

Co-authored-by: Julian Tölle <julian.toelle@hetzner-cloud.de>
Co-authored-by: Jonas Lammler <jonas.lammler@hetzner-cloud.de>
@apricote apricote merged commit bfbf5eb into main Oct 7, 2025
6 checks passed
@apricote apricote deleted the dns branch October 7, 2025 09:01
apricote pushed a commit that referenced this pull request Oct 7, 2025
<!-- section-start changelog -->
### DNS API Beta

This release adds support for the new [DNS
API](https://docs.hetzner.cloud/reference/cloud#dns).

The DNS API is currently in **beta**, which will likely end on 10
November 2025. After the beta ended, it will no longer be possible to
create new zones in the old DNS system. See the [DNS Beta
FAQ](https://docs.hetzner.com/networking/dns/faq/beta) for more details.

Future minor releases of this project may include breaking changes for
features that are related to the DNS API.

See the [DNS API Beta
changelog](https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta) for
more details.

**Examples**

```sh
hcloud zone create \
    --name example.com \
    --mode primary \
    --label key=value

hcloud zone rrset create example.com \
    --name @ \
    --type A \
    --record 201.180.75.2
```

### Features

- support the new DNS API (#1182)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

~~~~rp-prefix
### DNS API Beta

This release adds support for the new [DNS
API](https://docs.hetzner.cloud/reference/cloud#dns).

The DNS API is currently in **beta**, which will likely end on 10
November 2025. After the beta ended, it will no longer be possible to
create new zones in the old DNS system. See the [DNS Beta
FAQ](https://docs.hetzner.com/networking/dns/faq/beta) for more details.

Future minor releases of this project may include breaking changes for
features that are related to the DNS API.

See the [DNS API Beta
changelog](https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta) for
more details.

**Examples**

```sh
hcloud zone create \
    --name example.com \
    --mode primary \
    --label key=value

hcloud zone rrset create example.com \
    --name @ \
    --type A \
    --record 201.180.75.2
```
~~~~

### Suffix / End

This will be added to the end of the release notes.

~~~~rp-suffix
~~~~

</details>

Co-authored-by: Hetzner Cloud Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants