Go Powerdns Versions Save

Go PowerDNS 4.x API Client

v3.1.0

1 year ago

New

  • Support Go 1.18 (#36)
  • Support Go 1.19 (#37)
  • Support PowerDNS 4.5 (#37)
  • Support PowerDNS 4.6 (#37)

Deprecate

  • Deprecate support for Go 1.15 (#36)
  • Deprecate support for Go 1.16 (#37)
  • Deprecate support for PowerDNS 4.1, 4.2 and 4.3 as they are officially end-of-life (#37)

v3.0.3

2 years ago

Fixes

  • Canonical zone names in URLs (#35)

v3.0.2

2 years ago

New

  • Add godoc examples (#33)

v3.0.1

2 years ago

Fixes

  • Don't set Nsec3Param if DNSSEC is disabled (#32)

v3.0.0

2 years ago

New

  • Add context.Context to all API boundaries
  • Go 1.17 support

Migration

This library now requires context.Context for all methods which are requesting external APIs. Passing a Context is best practice in the Go ecosystem, which allows you to cancel requests to external APIs under specific circumstances in order to make your application more robust against external factors, such as timeouts.

Migration is simple: Add a Context such as context.Background() as a first paramter to any API methods.

Example

// Old method (without Context):
zone, err := pdns.Zones.Get("example.com")
// New method (with Context):
zone, err := pdns.Zones.Get(context.Background(), "example.com")

This applies to any API methods.

Deprecations

v2.5.0

2 years ago

New

  • Support PowerDNS 4.4

Fixes

  • Fix AddNative/AddMaster if zone is not DNSSEC-enabled

v2.4.0

3 years ago

New

  • One-argument zone add method
  • Return error status code

v2.3.0

4 years ago

New

  • Automatic resource record adjustment
  • Constants for various resource record types

v2.2.0

4 years ago

New

  • Cache flush API client
  • Config API client

v2.1.0

4 years ago

New

  • PowerDNS 4.2 support

Fixes

  • Ensure testability without mock endpoints