-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
AZURERM_DNS_ZONE attribute to output attribute name_servers #7374
Comments
Hi @isamuelson the Azure go-sdk doesn't seem to expose the name servers when a zone is created. I will raise a ticket with Azure now but this will take a while AFAICT Paul |
ok thanks, meanwhile is there a way to execute a command and get the results as an output ? |
Fraid not :( FYI, the issue is being tracked here Azure/azure-sdk-for-go#346 |
thank you |
v3.0.0-beta release has the changes |
@isamuelson yeah, the SDK has a lot of breaking changes so i am trying to make my way through to make sure that all works as expected |
Fixes #7374 The introduction of the AzureRM SDK 3.0.0-beta means that the `name_servers` for the DNS Zone are returned from the API This PR has a dependency on #7420 being merged first ``` make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMDnsZone_' ==> Checking that code complies with gofmt requirements... /Users/stacko/Code/go/bin/stringer go generate $(go list ./... | grep -v /vendor/) 2016/06/30 15:20:01 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMDnsZone_ -timeout 120m === RUN TestAccAzureRMDnsZone_basic --- PASS: TestAccAzureRMDnsZone_basic (92.42s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 92.444s ```
Fixes #7374 The introduction of the AzureRM SDK 3.0.0-beta means that the `name_servers` for the DNS Zone are returned from the API This PR has a dependency on #7420 being merged first ``` make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMDnsZone_' ==> Checking that code complies with gofmt requirements... /Users/stacko/Code/go/bin/stringer go generate $(go list ./... | grep -v /vendor/) 2016/06/30 15:20:01 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMDnsZone_ -timeout 120m === RUN TestAccAzureRMDnsZone_basic --- PASS: TestAccAzureRMDnsZone_basic (92.42s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 92.444s ```
Fixes #7374 The introduction of the AzureRM SDK 3.0.0-beta means that the `name_servers` for the DNS Zone are returned from the API This PR has a dependency on #7420 being merged first ``` make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMDnsZone_' ==> Checking that code complies with gofmt requirements... /Users/stacko/Code/go/bin/stringer go generate $(go list ./... | grep -v /vendor/) 2016/06/30 15:20:01 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMDnsZone_ -timeout 120m === RUN TestAccAzureRMDnsZone_basic --- PASS: TestAccAzureRMDnsZone_basic (92.42s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 92.444s ```
@stack72 is there a way to resolve the name_servers to list of IPs so it can be used on Virtual Network or Network Interface dns_servers? |
Hi @isamuelson These are the only things that come back from the API - you will need to resolve them on your side I'm afraid. Terraform has nothing that can do that Paul |
can we create a util function on terraform to resolve dns to ip ? |
@isamuelson IMO i think it's best to not try and resolve the IPs. The IPs may be subject to change. Feel free to open a PR that proposes such a function though Paul |
the name servers ip are static...they do not change. On Thu, Jul 7, 2016 at 10:44 AM, Paul Stack notifications@github.com
Ido Samuelson Phone (US): +1-415-562-8582 Email: ido.samuelson@gmail.com Skype: ido_samuelson |
@isamuelson if they can guarantee you that the ips will not change then please do feel free to write something that will do the reverse lookup of the IPs. I am assuming, that as MSFT use a global set of NameServers, that they could potentially fail over at some point. But as I said, this is an assumption |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
dns
The text was updated successfully, but these errors were encountered: