Files
opentf/website/source/docs/providers/powerdns/index.html.markdown
Stephen Muth bbd9b2c944 provider/powerdns: Add support for PowerDNS 4 API (#7819)
* Auto-detect the API version

and update the endpoint URL accordingly

* Typo fix

* Make client and resource work with the 4.X API

* Update documentation

* Fix typos

* 204 now counts as a "success" response

See
f0e76cee2c
for the change in the pdns repository.

* Add a note about a possible pitfall when defining some records
2016-07-28 17:01:06 +01:00

1.3 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
powerdns Provider: PowerDNS docs-powerdns-index The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. The provider needs to be configured with the proper credentials before it can be used.

PowerDNS Provider

The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. The provider needs to be configured with the proper credentials before it can be used. It supports both the legacy API and the new version 1 API, however resources may need to be configured differently.

Use the navigation to the left to read about the available resources.

Example Usage

# Configure the PowerDNS provider
provider "powerdns" {
    api_key = "${var.pdns_api_key}"
    server_url = "${var.pdns_server_url}"
}

# Create a record
resource "powerdns_record" "www" {
    ...
}

Argument Reference

The following arguments are supported:

  • api_key - (Required) The PowerDNS API key. This can also be specified with PDNS_API_KEY environment variable.
  • server_url - (Required) The address of PowerDNS server. This can also be specified with PDNS_SERVER_URL environment variable.