Skip to content

Add datasource of SOA type recordsΒ #274

Open
@uanid

Description

@uanid

Terraform CLI and Provider Versions

Terraform v1.2.9
on darwin_amd64
+ provider registry.terraform.io/hashicorp/dns v3.2.4

Use Cases or Problem Statement

The TTL of SOA record means NX_DOMAIN and NO_DATA's cache time.

Let's tell about one scenario, that register or delete domains dynamically,
A bunch of servers lookup domains in rapidly and periodically.

If the TTL of SOA is high like below picture, the servers are failed long times cause NX_DOMAINS time is too high.

image

The record means when NX_DOMAIN respond, cache it 30 hours

Proposal

I'm manage 110 hosted zones, among them 80 zones are dynamically managed.

I want read and update SOA record by dns soa record datasource.

This proposal add new datasource dns_soa_record_set

Input

data "dns_soa_record_set" "amazon" {
  host = "amazon.com"
}

Output

mname: dns-external-master.amazon.com. 
rname: root.amazon.com.
serial: 2010167466
refresh: 180
retry: 60
expire: 3024000
ttl: 60
raw: dns-external-master.amazon.com. root.amazon.com. 2010167466 180 60 3024000 60

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions