terraform-provider-hetznerdns icon indicating copy to clipboard operation
terraform-provider-hetznerdns copied to clipboard

Example for handling SRV records

Open ghost opened this issue 2 years ago • 1 comments

Hello,

I have already checked the documentation and I was wondering if someone already had sucess to create a SRV record and could share any example.

Further it would be great then if it would be added to the Examples block in the README.

ghost avatar Apr 04 '22 07:04 ghost

SRV are actually pretty simple, example for teamspeak:

resource "hetznerdns_record" "srv" {
  zone_id = hetznerdns_zone.example.id
  name    = "_ts3._udp.ts"
  value   = "10 0 9987 ts.example.com."
  type    = "SRV"
  ttl     = 3600
}

der-eismann avatar Apr 06 '22 11:04 der-eismann