This repository has been archived on 2026-08-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
beatzaplentyandClaude Sonnet 4.6 70bb75ad46
ci / test (push) Failing after 5m55s
bump to v0.2.0: complete provider implementation with live-tested DNS record types
- DYNU_API_KEY env var fallback in provider config
- dynu_domain resource: add 9 computed attributes (unicode_name, ipv4/ipv6 flags,
  wildcard aliases, allow_zone_transfer, dnssec, created_on, updated_on)
- dynu_dns_records data source: add 6 type-specific fields (priority, weight,
  port, flags, tag, value)
- Fix normalizeRecordContentForState for MX/SRV/NS/PTR (read host field) and CAA
  (read value field) to avoid plan/state inconsistency
- Allow underscore-prefixed DNS labels in hostname validator (RFC 2782 SRV)
- Preserve plan/state hostname across create/update/read to prevent inconsistent
  result errors when API returns full FQDN for node_name-style records
- Update all version references from 0.1.0 to 0.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LFZyrmtKsezBwFWGTWsb2y
2026-08-03 23:40:27 +10:00

992 B

page_title, description
page_title description
dynu_dns_records Data Source Lists DNS records for the Dynu root domain resolved from a hostname.

dynu_dns_records Data Source

Example Usage

data "dynu_dns_records" "records" {
  hostname = "www.example.com"
}

Schema

Required

  • hostname (String) Fully-qualified hostname.

Read-Only

  • domain_id (Number)
  • domain_name (String)
  • records (List of Object)
    • id (Number)
    • domain_id (Number)
    • domain_name (String)
    • node_name (String)
    • hostname (String)
    • record_type (String)
    • ttl (Number)
    • state (Boolean)
    • content (String)
    • updated_on (String)
    • group (String)
    • host (String)
    • priority (Number) Priority for MX and SRV records.
    • weight (Number) Weight for SRV records.
    • port (Number) Port for SRV records.
    • flags (Number) Flags for CAA records.
    • tag (String) Tag for CAA records.
    • value (String) Value for CAA records.