Skip to content

Latest commit

 

History

History
110 lines (85 loc) · 2.59 KB

File metadata and controls

110 lines (85 loc) · 2.59 KB

DSC Resource 'DnsServerZonesAging'

DnsServerZonesAging manages aging and scavenging settings for DNS zones.

When to use 'DnsServerZonesAging'

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

Table 1. Attributes of category 'DnsServerZonesAging'
Parameter Attribute DataType Description Allowed Values

Zones

Mandatory

Hashtable[]

List of DNS Zones

Table 2. Attributes of category 'DnsServerZonesAging/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.

  • True (default)

  • False

RefreshInterval

UInt32

Refresh interval for record scavenging in hours.

Default: 168 → 7 days

NoRefreshInterval

UInt32

No-refresh interval for record scavenging in hours.

Default: 168 → 7 days

Example
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