Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AXFR to fetch records for zones #360

Open
1 task done
Cajga opened this issue Sep 20, 2023 · 0 comments
Open
1 task done

Use AXFR to fetch records for zones #360

Cajga opened this issue Sep 20, 2023 · 0 comments

Comments

@Cajga
Copy link

Cajga commented Sep 20, 2023

Terraform CLI and Provider Versions

$ terraform version
Terraform v1.5.7
on linux_amd64
+ provider registry.terraform.io/hashicorp/dns v3.3.2

Use Cases or Problem Statement

We would like to use terraform to manage our DNS entries both in-house (bind9) and excternally (cloudflare). Internally, we have 4 DNS views for our zone and each has ~500 records. Looking into the code of this provider, it seems, this would mean 4*500 queries to the DNS server each time when we run terraform which seems like a lot.

Maybe this is totally out of scope question but would it be somehow possible to use AXFR to fetch the records in a particular zone instead of doing one by one queries for each records?

Proposal

Ideally, instead of one by one queries, a single AXFR query would be enough to fetch the full zone and be able to compare the configured/records in state to the live records.

How much impact is this issue causing?

Medium

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant