* docs: add examples and recreate TF documentation * update readme * add information about experimental support of firewall zones
1.7 KiB
1.7 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| unifi_dns_record Data Source - terraform-provider-unifi | Retrieves information about a specific DNS record configured in your UniFi network. This data source allows you to look up DNS records by either their name or record content. It's particularly useful for validating existing DNS configurations or referencing DNS records in other resources. |
unifi_dns_record (Data Source)
Retrieves information about a specific DNS record configured in your UniFi network. This data source allows you to look up DNS records by either their name or record content. It's particularly useful for validating existing DNS configurations or referencing DNS records in other resources.
Example Usage
data "unifi_dns_record" "by_name" {
name = "example.mydomain.com"
}
data "unifi_dns_record" "by_record" {
record = "192.168.0.1"
}
Schema
Optional
name(String) DNS record name.record(String) DNS record content.site(String) The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
Read-Only
enabled(Boolean) Whether the DNS record is enabled.id(String) The unique identifier of this resource.port(Number) The port of the DNS record.priority(Number) Priority of the DNS records. Present only for MX and SRV records; unused by other record types.ttl(Number) Time To Live (TTL) of the DNS record in seconds. Setting to 0 means 'automatic'.type(String) The type of the DNS record.weight(Number) A numeric value indicating the relative weight of the record.