Skip to content

Specify resolver to resolve requests #514

Open
@Tiino1

Description

@Tiino1

Terraform CLI and Provider Versions

hashicorp/dns: 3.4.2
terraform: 1.9.8

Use Cases or Problem Statement

When testing DNS setups and debugging DNS issues, it is common to have a look at what a resolver sees.
I wish I could have an equivalent of dig @resolver.server.name.or.ip domain.name.com

Proposal

I would like to specify which resolver to use inside the provider block

provider "dns" {
  resolver = "1.1.1.1"
  alias = "cloudflare"
}
provider "dns" {
  resolver = "my.resolver.domain.name.com"
  alias = "my-resolver"
}

How much impact is this issue causing?

High

Additional Information

Without this feature, I need to create an external block, invoke dig command, make sure dig is installed ... So I prefer to not use terraform at all for DNS setups as long as this feature is not available.

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