DnsServerZonesAging manages aging and scavenging settings for DNS zones.
Use this resource when you need to enable and configure DNS scavenging to automatically clean up stale (outdated) DNS records. This is important in dynamic DNS environments (especially with DHCP) to prevent accumulation of records for decommissioned or moved machines.
A resource record can remain on a DNS server after the resource is no longer part of the network. Aging settings determine when a record can be removed, or scavenged, as a stale record.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of DNS Zones |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Name |
Key |
String |
Name of the DNS forward or reverse lookup zone. |
|
Enabled |
Boolean |
Option to enable scavenge stale resource records on the zone. |
|
|
RefreshInterval |
UInt32 |
Refresh interval for record scavenging in hours. |
Default: |
|
NoRefreshInterval |
UInt32 |
No-refresh interval for record scavenging in hours. |
Default: |
DnsServerZonesAging:
Zones:
- Name: north.contoso.com
Enabled: True
RefreshInterval: 120 # 5 days
NoRefreshInterval: 240 # 10 days
- Name: south.contoso.com
Enabled: True
- Name: east.contoso.com
Enabled: False