DNS Zone file Resource API 5.1
lakshmi-enjeti edited this page Jan 12, 2018
·
2 revisions
The DNS zone file
resource allows for the creation and management DNS zone files. These files will be utilised by the DNS zone
resource.
resource "pulsevtm_dns_zone_file" "example" {
name = "example.com.db"
dns_zone_file = <<DNS_ZONE_FILE
$TTL 3600
@ 30 IN SOA ns1.example.com. hostmaster.example.com. (
01; serial
3600; refresh after 1 hour
300; retry after 5 minutes
1209600; expire after 2 weeks
30); minimum TTL of 30 seconds
@ 30 IN NS ns1.example.com.
ns1 30 IN A 10.0.1.2
example-service 60 IN A 10.1.1.10
60 IN A 10.1.2.10
another-example-service 60 IN A 10.1.1.11
60 IN A 10.1.2.11
DNS_ZONE_FILE
}
The following arguments are supported:
-
name
- (Required) - The unique name of the DNS zone file resource. -
dns_zone_file
- (Required) - The DNS zone file including all records.