Open longwave opened 1 year ago
@bflad (tagging because of comment on last non-dependabot PR) & @bookshelfdave due to triage label last year
I'd gladly pick this up and write a PR but I'm not sure if this is a feature / enhancement that would be accepted, considering there haven't been added features for a while now (judging from the PRs).
This would be great. I just discovered this provider, and unfortunately the internal network DNS is blocking some DNS lookups and network operations doesn't want to open or mess with their DNS Config.
I can solve my issue using this provider if I could use Google or some other known external DNS provider.
provider "dns" {
query {
server = [ "8.8.8.8", "8.8.4.4" ]
}
}
Terraform CLI and Provider Versions
Terraform v1.3.4 on linux_amd64
Use Cases or Problem Statement
I use the
dns_a_record_set
data source to look up an internal (RFC1918) IP address:Even though it is not routable from the Internet the IP address is published as a public DNS record. However, some routers provide DNS rebinding protection, which means that their DNS server refuses to return RFC1918 IP addresses.
terraform plan
then fails:The only workaround is to change the local DNS server to Cloudflare 1.1.1.1 or Google 8.8.8.8 or similar.
Proposal
Allow a query DNS server to be specified in the provider block:
How much impact is this issue causing?
Medium
Additional Information
This was hinted at in #172 but I think this proposal is cleaner than allowing the DNS server to be specified in the data source itself.
Code of Conduct