Skip to content

Add Bunny DNS provider plugin for the DNS framework - #14843

Open
wido wants to merge 1 commit into
apache:mainfrom
wido:bunny-dns-provider
Open

wido wants to merge 1 commit into
apache:mainfrom
wido:bunny-dns-provider

Conversation

@wido

@wido wido commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a Bunny DNS driver for the DNS provider framework, next to PowerDNS.

  • Zones and records are resolved by name on each call, as Bunny only addresses them by numeric id.
  • Adding a record replaces all records of that name and type, matching the PowerDNS rrset behaviour the framework relies on.
  • MX/SRV priority, weight and port are mapped to Bunny's separate fields.
  • UI: selecting BunnyDNS defaults the URL to https://api.bunny.net and the port to 443.

Types of changes

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Unit tests only, not yet tested against the live Bunny API.

Implements the DnsProvider interface for Bunny.net's DNS API, resolving
zone/record identifiers by name on each call since Bunny only addresses
them by numeric id and CloudStack's DnsZone/DnsRecord model doesn't
persist those. Also translates between CloudStack's PowerDNS-style
rrset content strings (priority/weight/port embedded in text) and
Bunny's discrete record fields.
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.53181% with 49 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.87%. Comparing base (35373d3) to head (0ebc2e5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rg/apache/cloudstack/dns/bunny/BunnyDnsClient.java 83.61% 16 Missing and 33 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14843      +/-   ##
============================================
+ Coverage     20.82%   20.87%   +0.04%     
- Complexity    20965    21057      +92     
============================================
  Files          6054     6056       +2     
  Lines        548982   549377     +395     
  Branches      78642    73424    -5218     
============================================
+ Hits         114351   114684     +333     
- Misses       421246   421273      +27     
- Partials      13385    13420      +35     
Flag Coverage Δ
uitests 3.86% <ø> (-0.01%) ⬇️
unittests 22.31% <87.53%> (+0.04%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✔️ suse15. SL-JID 20161

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants