Skip to content

SRV Record

craig-duffin edited this page Jul 13, 2017 · 4 revisions

The SRV_Record resource allows for the creation and management of a SRV_Record on infoblox.

Example Usage

resource "infoblox_srv_record" "srv_record_demo" {
   	name = "svr-recordcreated.test-ovp.bskyb.com"
	port = 8080
	priority = 99
	target = "craig4test.test-ovp.bskyb.com"
	weight = 10
	comment = "test test"
        view = "default"
	ttl = 900
        use_ttl = true
}

Argument Reference

The following arguments are supported:

  • name - (Required) - (String) - The name for a SRV record in FQDN format. This value can be in unicode format.

  • port - (Required) - (Int) - The port of the SRV record. Valid values are from 0 to 65535 (inclusive), in 32-bit unsigned integer format.

  • priority - (Required) - (Int) - The priority of the SRV record. Valid values are from 0 to 65535 (inclusive), in 32-bit unsigned integer format.

  • target - (Required) - (String) - The target of the SRV record in FQDN format. This value can be in unicode format.

  • weight - (Required) - (Int) - The weight of the SRV record. Valid values are from 0 to 65535 (inclusive), in 32-bit unsigned integer format.

  • comment - (Optional, Default = empty) - (String) - Comment for the record; maximum 256 characters.

  • view - (Optional, Default = "default") - (String) - The name of the DNS View in which the record resides. Example: “default”.

  • ttl - (Optional, Default = empty) - (Int) - The Time To Live (TTL) value for record. A 32-bit unsigned integer that represents the duration, in seconds, for which the record is valid (cached). Zero indicates that the record should not be cached. Requires use_ttl to be set true in order to be active.

  • use_ttl - (Optional, Default = false) - (Bool) - Use flag for: ttl

Clone this wiki locally