No description
  • Go 96.3%
  • Shell 2.2%
  • HCL 1.3%
  • Makefile 0.2%
Find a file
dependabot[bot] c06a46f50f
build(deps): Bump github.com/hashicorp/copywrite in /tools (#626)
Bumps [github.com/hashicorp/copywrite](https://github.com/hashicorp/copywrite) from 0.25.1 to 0.25.2.
- [Release notes](https://github.com/hashicorp/copywrite/releases)
- [Commits](https://github.com/hashicorp/copywrite/compare/v0.25.1...v0.25.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/copywrite
  dependency-version: 0.25.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-30 10:49:25 -04:00
.changes prep for release v3.5.0 (#610) 2026-01-28 13:43:56 +01:00
.github build(deps): Bump the github-actions group across 1 directory with 4 updates (#622) 2026-03-02 10:45:28 +01:00
.release Change release tooling to release with HashiCorp CRT (#545) 2025-04-28 15:52:38 +02:00
docs Replace words in IPv6 examples (#604) 2026-01-22 16:31:27 -05:00
examples Replace words in IPv6 examples (#604) 2026-01-22 16:31:27 -05:00
internal build(deps): Bump github.com/hashicorp/terraform-plugin-go from 0.29.0 to 0.30.0 in the terraform-plugin group (#618) 2026-02-25 15:58:58 +01:00
META.d Add catalog metadata (META.d) (#553) 2025-05-13 08:13:50 -04:00
templates docs: Use default terraform-plugin-docs templates for data sources and resources (#288) 2023-04-18 08:06:35 -04:00
tools build(deps): Bump github.com/hashicorp/copywrite in /tools (#626) 2026-03-30 10:49:25 -04:00
version prep for release v3.5.0 (#610) 2026-01-28 13:43:56 +01:00
.changie.yaml [CI] terraform-devex-repos automation 2024-06-07 16:23:00 -04:00
.copywrite.hcl Add catalog metadata (META.d) (#553) 2025-05-13 08:13:50 -04:00
.gitignore .github/workflows: Add goreleaser cross-compilation testing for pull requests 2021-06-15 09:57:19 -04:00
.golangci.yml SEC-090: Automated trusted workflow pinning (2025-04-07) (#538) 2025-04-09 10:47:16 -05:00
CHANGELOG.md prep for release v3.5.0 (#610) 2026-01-28 13:43:56 +01:00
DESIGN.md Migrate to terraform-plugin-framework (#260) 2023-04-14 11:58:40 -04:00
GNUmakefile [COMPLIANCE] Add copyright and license headers (#309) 2023-06-08 06:59:39 +01:00
go.mod build(deps): Bump google.golang.org/grpc from 1.79.2 to 1.79.3 (#625) 2026-03-19 11:38:53 -04:00
go.sum build(deps): Bump google.golang.org/grpc from 1.79.2 to 1.79.3 (#625) 2026-03-19 11:38:53 -04:00
LICENSE build(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.38.1 to 2.38.2 in the terraform-plugin group (#612) 2026-02-06 11:23:09 -05:00
main.go build(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.38.1 to 2.38.2 in the terraform-plugin group (#612) 2026-02-06 11:23:09 -05:00
README.md [Chore] Upgrade Go version to 1.24 (#587) 2025-10-07 15:20:14 -04:00
terraform-registry-manifest.json Migrate to GitHub Actions Release Process (#182) 2022-01-06 09:30:59 -05:00

Terraform Provider: DNS

The DNS provider supports resources that perform DNS updates (RFC 2136) and data sources for reading DNS information. The provider can be configured with secret key based transaction authentication (RFC 2845) or GSS-TSIG (RFC 3645).

Requirements

Documentation, questions and discussions

Official documentation on how to use this provider can be found on the Terraform Registry. In case of specific questions or discussions, please use the HashiCorp Terraform Providers Discuss forums, in accordance with HashiCorp Community Guidelines.

We also provide:

  • Support page for help when using the provider
  • Contributing guidelines in case you want to help this project

Compatibility

Compatibility table between this provider, the Terraform Plugin Protocol version it implements, and Terraform:

DNS Provider Terraform Plugin Protocol Terraform
>= 3.0.x 5 >= 0.12
>= 2.1.x 4 and 5 >= 0.12
<= 2.x.x 4 <= 0.12

Details can be found querying the Registry API that return all the details about which version are currently available for a particular provider. Here are the details for DNS (JSON response).

Development

Building

  1. git clone this repository and cd into its directory
  2. make will trigger the Golang build

The provided GNUmakefile defines additional commands generally useful during development, like for running tests, generating documentation, code formatting and linting. Taking a look at it's content is recommended.

Testing

In order to test the provider, you can run

  • make test to run provider tests
  • make testacc to run provider acceptance tests (excluding ones requiring a DNS_UPDATE_SERVER)
  • ./internal/provider/acceptance.sh to run the full suite of acceptance tests

Running acceptance.sh has the following prerequisites:

macOS Setup

echo "127.0.0.1 ns.example.com" | sudo tee -a /etc/hosts

Ubuntu Setup

echo "127.0.0.1 ns.example.com" | sudo tee -a /etc/hosts
sudo apt-get install krb5-user make
# If prompted for Kerberos configuration:
# Default Realm: EXAMPLE.COM
# Server: ns.example.com
# Administrative Server: ns.example.com

It's important to note that acceptance tests (testacc) will actually spawn terraform and the provider. Read more about they work on the official page.

Generating documentation

This provider uses terraform-plugin-docs to generate documentation and store it in the docs/ directory. Once a release is cut, the Terraform Registry will download the documentation from docs/ and associate it with the release version. Read more about how this works on the official page.

Use make generate to ensure the documentation is regenerated with any changes.

Using a development build

If running tests and acceptance tests isn't enough, it's possible to set up a local terraform configuration to use a development builds of the provider. This can be achieved by leveraging the Terraform CLI configuration file development overrides.

First, use make install to place a fresh development build of the provider in your ${GOBIN} (defaults to ${GOPATH}/bin or ${HOME}/go/bin if ${GOPATH} is not set). Repeat this every time you make changes to the provider locally.

Then, setup your environment following these instructions to make your local terraform use your local build.

Testing GitHub Actions

This project uses GitHub Actions to realize its CI.

Sometimes it might be helpful to locally reproduce the behaviour of those actions, and for this we use act. Once installed, you can simulate the actions executed when opening a PR with:

# List of workflows for the 'pull_request' action
$ act -l pull_request

# Execute the workflows associated with the `pull_request' action 
$ act pull_request

Releasing

The releasable builds are generated from the build GH workflow and the release/promotion process is completed via internal HashiCorp deployment tooling. Prior to release, the changelog should be updated in main with the changie tool, example:

changie batch 3.7.2 && changie merge

License

Mozilla Public License v2.0