/
infoblox_srv_record Resource

infoblox_srv_record Resource

The infoblox_srv_record resource corresponds to an SRV record (service location record) in NIOS. An SRV record provides information about a network endpoint (host and port), which provides a particular network service for the specified DNS zone. For more information about an SRV record, refer to Managing SRV Records in the Infoblox NIOS Documentation.

The following table describes the parameters you can define in the resource block of the record:

Parameter

Required/
Optional

Description

Example Value

Parameter

Required/
Optional

Description

Example Value

name

Required

Specifies the record's name in the format defined in the RFC2782 document.

_http._tcp.acme.com

target

Required

Specifies the fully qualified domain name of the host responsible for providing the service specified by name.

www.acme.com

port

Required

Specifies a port number between 0 and 65535 on the host that is defined by the target parameter.

6000

priority

Required

Specifies a priority number as described in the RFC2782 document.

10

weight

Required

Specifies a weight number as described in the RFC2782 document.

6

dns_view

Optional

Specifies the DNS view in which the record’s zone exists.
If a value is not specified, default will be used as the DNS view name.

dns_view_1

ttl

Optional

Specifies the Time to Live value for the record. There is no default value for this parameter.
If a value is not specified, then in NIOS, the TTL value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record.

600

comment

Optional

Describes the record.

auto-created test record #1

ext_attrs

Optional

Specifies the set of NIOS extensible attributes that are attached to the record.

jsonencode({})

Note
The values of the name and target parameters must be RFC2782 compliant and they must not contain special characters.

Examples of the SRV Record Block

// minimal set of parameters
resource "infoblox_srv_record" "rec1" {
name = "_http._tcp.example.org"
priority = 100
weight = 75
port = 8080
target = "Example Domain "
}

// all set of parameters for SRV record
resource "infoblox_srv_record" "rec2" {
dns_view = "nondefault_dnsview1"
name = "_sip._udp.example2.org"
priority = 12
weight = 10
port = 5060
target = "example2.org "
ttl = 3600
comment = "example SRV record"
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
}

Related content