timohirt / terraform-provider-hetznerdns

Terraform provider for Hetzner DNS
Mozilla Public License 2.0
106 stars 21 forks source link

Example for handling SRV records #39

Open ghost opened 2 years ago

ghost commented 2 years ago

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.

der-eismann commented 2 years ago

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
}