infoblox_zone_delegated Data Source
Use the infoblox_zone_delegated
data source to retrieve the following information about a delegated DNS zone from the corresponding object in NIOS:
Parameter | Description | Example |
---|---|---|
| The name of the DNS zone. For a reverse zone, this is in CIDR format. |
For reverse mapping zone: |
| The remote server to which the NIOS appliance redirects queries for data for the delegated zone. |
|
| The name of the DNS view in which the zone resides. |
|
| The flag that determines whether the zone is disabled or not. |
|
| The flag that restricts other administrators from making any changes. Note that this flag is for administration purposes only. The zone will continue to serve DNS data even when it is locked. |
|
| The name server group that serves DNS for this zone. |
|
| The TTL value for the delegated zone. |
|
| The field that determines the format of the zone. The valid values are |
|
| A description of the DNS zone. This is a regular comment. |
|
| The set of extensible attributes of the DNS view, if any. |
|
To retrieve information about delegated zones that match the specified filters, use the filters
argument and specify the parameters mentioned in the below table. These are the searchable parameters of the corresponding object in Infoblox NIOS WAPI. If you do not specify any parameter, the data source retrieves information about all delegated zones in the NIOS Grid.
The following table describes the parameters you can define in the infoblox_zone_delegated
data source block:
Parameter | Description |
---|---|
| Specifies the name of the DNS view in which the DNS zone exists. |
| Specifies the name of the DNS zone. |
| Specifies the format of the DNS zone. |
| The description of the DNS zone. |
Extensible Attributes | Specifies the extensible attributes specified for the DNS zone. You must specify the key/value pair within the |
Example of the Zone Delegated Data Source Block
resource "infoblox_zone_delegated" "zone_delegate_to" {
fqdn = "zone_delegate.test_fwzone"
delegate_to {
name = "test22.dz.ex.com"
address = "10.0.0.1"
}
delegate_to {
name = "test2.dz.ex.com"
address = "10.0.0.2"
}
}
// accessing Zone delegated by specifying fqdn and view
data "infoblox_zone_delegated" "data_zone_delegated" {
filters = {
fqdn = "zone_delegate.test_fwzone"
view = "default"
}
// This is just to ensure that the record has been be created
depends_on = [infoblox_zone_delegated.zone_delegate_to]
}
// returns matching Zone delegated with fqdn and view, if any
output "zone_delegated_data3" {
value = data.infoblox_zone_delegated.data_zone_delegated
}