diff --git a/website/source/docs/providers/dns/d/dns_a_record_set.html.markdown b/website/source/docs/providers/dns/d/dns_a_record_set.html.markdown new file mode 100644 index 000000000..b4432197c --- /dev/null +++ b/website/source/docs/providers/dns/d/dns_a_record_set.html.markdown @@ -0,0 +1,37 @@ +--- +layout: "dns" +page_title: "DNS: dns_a_record_set" +sidebar_current: "docs-dns-datasource-a-record-set" +description: |- + Get DNS A record set. +--- + +# dns\_a\_record\_set + +Use this data source to get DNS A records of the host. + +## Example Usage + +``` +data "dns_a_record_set" "google" { + host = "google.com" +} + +output "google_addrs" { + value = "${join(",", data.dns_a_record_set.google.addrs)}" +} +``` + +## Argument Reference + +The following arguments are supported: + + * `host` - (required): Host to look up + +## Attributes Reference + +The following attributes are exported: + + * `id` - Set to `host`. + + * `addrs` - A list of IP addresses. IP addresses are always sorted to avoid constant changing plans. \ No newline at end of file diff --git a/website/source/docs/providers/dns/d/dns_cname_record_set.html.markdown b/website/source/docs/providers/dns/d/dns_cname_record_set.html.markdown new file mode 100644 index 000000000..b230fbbe9 --- /dev/null +++ b/website/source/docs/providers/dns/d/dns_cname_record_set.html.markdown @@ -0,0 +1,37 @@ +--- +layout: "dns" +page_title: "DNS: dns_cname_record_set" +sidebar_current: "docs-dns-datasource-cname-record-set" +description: |- + Get DNS CNAME record set. +--- + +# dns\_cname\_record\_set + +Use this data source to get DNS CNAME record set of the host. + +## Example Usage + +``` +data "dns_cname_record_set" "hashicorp" { + host = "www.hashicorp.com" +} + +output "hashi_cname" { + value = "${data.dns_cname_record_set.hashi.cname}" +} +``` + +## Argument Reference + +The following arguments are supported: + + * `host` - (required): Host to look up + +## Attributes Reference + +The following attributes are exported: + + * `id` - Set to `host`. + + * `cname` - A CNAME record associated with host. \ No newline at end of file diff --git a/website/source/docs/providers/dns/d/dns_txt_record_set.html.markdown b/website/source/docs/providers/dns/d/dns_txt_record_set.html.markdown new file mode 100644 index 000000000..ab50c7ea2 --- /dev/null +++ b/website/source/docs/providers/dns/d/dns_txt_record_set.html.markdown @@ -0,0 +1,43 @@ +--- +layout: "dns" +page_title: "DNS: dns_txt_record_set" +sidebar_current: "docs-dns-datasource-txt-record-set" +description: |- + Get DNS TXT record set. +--- + +# dns\_txt\_record\_set + +Use this data source to get DNS TXT record set of the host. + +## Example Usage + +``` +data "dns_txt_record_set" "hashicorp" { + host = "www.hashicorp.com" +} + +output "hashi_txt" { + value = "${data.dns_txt_record_set.hashi.record}" +} + +output "hashi_txts" { + value = "${join(",", data.dns_txt_record_set.hashi.records})" +} +``` + +## Argument Reference + +The following arguments are supported: + + * `host` - (required): Host to look up + +## Attributes Reference + +The following attributes are exported: + + * `id` - Set to `host`. + + * `record` - The first TXT record. + + * `records` - A list of TXT records. \ No newline at end of file