Update dns provider

This commit is contained in:
Seth Vargo 2017-04-10 12:22:13 -04:00
parent e9edc1d904
commit 1d6c7f35b6
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
8 changed files with 49 additions and 46 deletions

View File

@ -6,13 +6,13 @@ description: |-
Get DNS A record set.
---
# dns\_a\_record\_set
# dns_a_record_set
Use this data source to get DNS A records of the host.
## Example Usage
```
```hcl
data "dns_a_record_set" "google" {
host = "google.com"
}

View File

@ -6,13 +6,13 @@ description: |-
Get DNS CNAME record set.
---
# dns\_cname\_record\_set
# dns_cname_record_set
Use this data source to get DNS CNAME record set of the host.
## Example Usage
```
```hcl
data "dns_cname_record_set" "hashicorp" {
host = "www.hashicorp.com"
}

View File

@ -6,13 +6,13 @@ description: |-
Get DNS TXT record set.
---
# dns\_txt\_record\_set
# dns_txt_record_set
Use this data source to get DNS TXT record set of the host.
## Example Usage
```
```hcl
data "dns_txt_record_set" "hashicorp" {
host = "www.hashicorp.com"
}

View File

@ -14,7 +14,7 @@ Use the navigation to the left to read about the available resources.
## Example Usage
```
```hcl
# Configure the DNS Provider
provider "dns" {
update {

View File

@ -6,19 +6,23 @@ description: |-
Creates a A type DNS record set.
---
# dns\_a\_record\_set
# dns_a_record_set
Creates a A type DNS record set.
## Example Usage
```
resource "dns_a_record_set" "www" {
zone = "example.com."
name = "www"
addresses = ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
ttl = 300
}
```hcl
resource "dns_a_record_set" "www" {
zone = "example.com."
name = "www"
addresses = [
"192.168.0.1",
"192.168.0.2",
"192.168.0.3",
]
ttl = 300
}
```
## Argument Reference
@ -38,4 +42,3 @@ The following attributes are exported:
* `name` - See Argument Reference above.
* `addresses` - See Argument Reference above.
* `ttl` - See Argument Reference above.

View File

@ -6,19 +6,22 @@ description: |-
Creates a AAAA type DNS record set.
---
# dns\_aaaa\_record\_set
# dns_aaaa_record_set
Creates a AAAA type DNS record set.
## Example Usage
```
resource "dns_aaaa_record_set" "www" {
zone = "example.com."
name = "www"
addresses = ["fdd5:e282:43b8:5303:dead:beef:cafe:babe", "fdd5:e282:43b8:5303:cafe:babe:dead:beef"]
ttl = 300
}
```hcl
resource "dns_aaaa_record_set" "www" {
zone = "example.com."
name = "www"
addresses = [
"fdd5:e282:43b8:5303:dead:beef:cafe:babe",
"fdd5:e282:43b8:5303:cafe:babe:dead:beef",
]
ttl = 300
}
```
## Argument Reference
@ -38,4 +41,3 @@ The following attributes are exported:
* `name` - See Argument Reference above.
* `addresses` - See Argument Reference above.
* `ttl` - See Argument Reference above.

View File

@ -6,19 +6,19 @@ description: |-
Creates a CNAME type DNS record.
---
# dns\_cname\_record
# dns_cname_record
Creates a CNAME type DNS record.
## Example Usage
```
resource "dns_cname_record" "foo" {
zone = "example.com."
name = "foo"
cname = "bar.example.com."
ttl = 300
}
```hcl
resource "dns_cname_record" "foo" {
zone = "example.com."
name = "foo"
cname = "bar.example.com."
ttl = 300
}
```
## Argument Reference
@ -38,4 +38,3 @@ The following attributes are exported:
* `name` - See Argument Reference above.
* `cname` - See Argument Reference above.
* `ttl` - See Argument Reference above.

View File

@ -6,19 +6,19 @@ description: |-
Creates a PTR type DNS record.
---
# dns\_ptr\_record
# dns_ptr_record
Creates a PTR type DNS record.
## Example Usage
```
resource "dns_ptr_record" "dns-sd" {
zone = "example.com."
name = "r._dns-sd"
ptr = "example.com."
ttl = 300
}
```hcl
resource "dns_ptr_record" "dns-sd" {
zone = "example.com."
name = "r._dns-sd"
ptr = "example.com."
ttl = 300
}
```
## Argument Reference
@ -38,4 +38,3 @@ The following attributes are exported:
* `name` - See Argument Reference above.
* `ptr` - See Argument Reference above.
* `ttl` - See Argument Reference above.