Skip to content

feat(provider): support vddns.vn#1112

Open
DNCTrung wants to merge 2 commits into
qdm12:masterfrom
DNCTrung:feat/provider-vddns-vn
Open

feat(provider): support vddns.vn#1112
DNCTrung wants to merge 2 commits into
qdm12:masterfrom
DNCTrung:feat/provider-vddns-vn

Conversation

@DNCTrung

@DNCTrung DNCTrung commented Apr 9, 2026

Copy link
Copy Markdown

This pull request adds support for the vddns DNS provider to the project. The main changes involve registering the new provider, implementing its logic, and integrating it into the provider selection and instantiation flow.

Provider Integration:

  • Added Vddns to the list of available providers in constants/providers.go and included it in the provider choices. [1] [2]
  • Registered the new provider in the provider factory method in provider.go, enabling instantiation based on user configuration.
  • Imported the new provider implementation in the provider registry.

Provider Implementation:

  • Created a new file providers/vddns/provider.go implementing the vddns provider logic, including configuration validation, update requests to the provider's API, and integration with the existing provider interface.

@DNCTrung DNCTrung marked this pull request as draft April 14, 2026 02:17
@DNCTrung DNCTrung marked this pull request as ready for review April 14, 2026 02:18
Comment thread internal/provider/constants/providers.go
Comment thread internal/provider/constants/providers.go
return netip.Addr{}, fmt.Errorf("doing http request: %w", err)
}

if response.StatusCode != http.StatusOK {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you send a request with the wrong password, what response do you get?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Service always returns StatusOK with IP

good 116.103.xx.xx

It will show an error if the base auth is not set.

badauth: 1

response.StatusCode, utils.BodyToSingleLine(response.Body))
}

err = response.Body.Close()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on success, what response body do you get?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Service will respond with a raw text:

good 116.103.xx.xx

@DNCTrung DNCTrung requested a review from qdm12 May 1, 2026 20:13
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.

2 participants