Creates an SRV type DNS record set.
resource "dns_srv_record_set" "sip" {
zone = "example.com."
name = "_sip._tcp"
srv {
priority = 10
weight = 60
target = "bigbox.example.com."
port = 5060
}
srv {
priority = 10
weight = 20
target = "smallbox1.example.com."
port = 5060
}
srv {
priority = 10
weight = 20
target = "smallbox2.example.com."
port = 5060
}
ttl = 300
}
name
(String) The name of the record set. The zone
argument will be appended to this value to create the full record path.zone
(String) DNS zone the record set belongs to. It must be an FQDN, that is, include the trailing dot.srv
(Block Set) Can be specified multiple times for each SRV record. (see below for nested schema)ttl
(Number) The TTL of the record set. Defaults to 3600
.id
(String) Always set to the fully qualified domain name of the record set.srv
Required:
port
(Number) The port for the service on the target.priority
(Number) The priority for the record.target
(String) The FQDN of the target, include the trailing dot.weight
(Number) The weight for the record.Import is supported using the following syntax:
# Import using the FQDN.
terraform import dns_srv_record_set.sip _sip._tcp.example.com.