Use this data source to get DNS SRV records for a service.
data "dns_srv_record_set" "sip" {
service = "_sip._tcp.example.com."
}
output "sipserver" {
value = data.dns_srv_record_set.sip.srv.0.target
}
service
(String) Service to look up.id
(String) Always set to the service.srv
(List of Object) A list of records. They are sorted to stay consistent across runs. (see below for nested schema)srv
Read-Only:
port
(Number)priority
(Number)target
(String)weight
(Number)