Skip to content

Commit 39a1d1f

Browse files
committed
DNS RRset resource for records per domain and type in a zone
1 parent abe9904 commit 39a1d1f

File tree

9 files changed

+1262
-0
lines changed

9 files changed

+1262
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Support resource discovery for `monitoring` resources
1212
- Support resource discovery for `identity` resources
1313
- Support resource discovery for `dataflow` resources
14+
- Added `oci_dns_rrset` resource to support DNS RRSet
1415

1516
## 3.79.0 (June 03, 2020)
1617

examples/dns/rrset.tf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
resource "oci_dns_rrset" "rrset-a" {
2+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
3+
domain = "${oci_dns_zone.zone3.name}"
4+
rtype = "A"
5+
6+
items {
7+
domain = "${oci_dns_zone.zone3.name}"
8+
rtype = "A"
9+
rdata = "192.168.0.3"
10+
ttl = 3600
11+
}
12+
13+
items {
14+
domain = "${oci_dns_zone.zone3.name}"
15+
rtype = "A"
16+
rdata = "192.168.0.4"
17+
ttl = 3600
18+
}
19+
}
20+
21+
resource "oci_dns_rrset" "rrset-aaaa" {
22+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
23+
domain = "${oci_dns_zone.zone3.name}"
24+
rtype = "AAAA"
25+
26+
items {
27+
domain = "${oci_dns_zone.zone3.name}"
28+
rtype = "AAAA"
29+
rdata = "0000:0000:8a2e:0000:0000:0370:0000:0000"
30+
ttl = 3600
31+
}
32+
}
33+
34+
resource "oci_dns_rrset" "rrset-cname" {
35+
zone_name_or_id = "${oci_dns_zone.zone3.name}"
36+
domain = "el.${oci_dns_zone.zone3.name}"
37+
rtype = "CNAME"
38+
39+
items {
40+
domain = "el.${oci_dns_zone.zone3.name}"
41+
rtype = "CNAME"
42+
rdata = "${oci_dns_zone.zone3.name}"
43+
ttl = 86400
44+
}
45+
}

examples/dns/zone.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ resource "oci_dns_zone" "zone1" {
1717
zone_type = "PRIMARY"
1818
}
1919

20+
resource "oci_dns_zone" "zone3" {
21+
compartment_id = "${var.compartment_ocid}"
22+
name = "${data.oci_identity_tenancy.tenancy.name}-${random_string.random_prefix.result}-tf-example3-primary.oci-dns1"
23+
zone_type = "PRIMARY"
24+
}
25+
2026
resource "oci_dns_tsig_key" "test_tsig_key" {
2127
algorithm = "hmac-sha1"
2228
compartment_id = "${var.compartment_ocid}"

0 commit comments

Comments
 (0)