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/ | Description | Example Value |
---|---|---|---|
| Required | Specifies the record's name in the format defined in the RFC2782 document. |
|
| Required | Specifies the fully qualified domain name of the host responsible for providing the service specified by |
|
| Required | Specifies a port number between 0 and 65535 on the host that is defined by the |
|
| Required | Specifies a priority number as described in the RFC2782 document. |
|
| Required | Specifies a weight number as described in the RFC2782 document. |
|
| Optional | Specifies the DNS view in which the record’s zone exists. |
|
| Optional | Specifies the Time to Live value for the record. There is no default value for this parameter. |
|
| Optional | Describes the record. |
|
| Optional | Specifies the set of NIOS extensible attributes that are attached to the record. |
|
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"
})
}