DNS

What is DNS Aging & Scavenging & How to configure the feature on Windows Server?

What is DNS Aging & Scavenging & How to configure the feature on Windows Server?

Windows computers refresh their DNS records in the domain zones hosted by the DNS servers every 24 hours. When a Windows computer is removed from the domain or is not able to update its DNS record in the DNS Server, the DNS record of that Windows computer remains in the DNS database and is considered to be a stale DNS record. The stale DNS records remain in the DNS database unless it's manually removed. DNS Aging and Scavenging helps to quickly identify the stale DNS records and remove them manually. In this post, we will provide a description of what DNS Aging and Scavenging is, as well as outline the steps required to configure/enable this feature on the Windows server.

What is DNS Aging?

Aging is a feature that allows identifying stale DNS records. It actually uses two intervals and a DNS record is considered as stale once both are elapsed.

These intervals are:

(*) A resource record refresh is a DNS dynamic update where the hostname and IP do not change. A DNS dynamic update to change the registered IP for a resource record is not considered as a refresh and is exempt from the Non-Refresh Interval.

What is DNS Scavenging?

Scavenging is a feature that allows the cleanup and removal of stale resource records in DNS zones.

A stale resource record will be removed only if scavenging is enabled on:

Scavenging occurs on recurring intervals when enabled on a DNS server. A stale resource record can then still exist until the next cycle of DNS scavenging.

If you do not enable DNS Aging and scavenging, you might face the following situations:

Enable & Configure DNS Aging and Scavenging

To successfully configure/enable DNS Aging and Scavenging on Windows server, you need to follow 3 steps in this order;

  1. Check Server DNS Records (very important first step)
  2. Enable DNS aging and scavenging on DNS zones
  3. Enable DNS scavenging on at least one DNS server hosting primary copies of your DNS zones

Let's take a look at the steps involved in detail.

1] Check Server DNS Records (very important first step)

This step is crucial because if you don't follow this step first you could end up deleting server DNS records. As a precaution, you may want to also backup your DNS server and or records.

Scavenging works on timestamps, so any DNS record with a timestamp will get processed and possibly deleted. So it's recommended you check your server DNS records and make sure they are static.

To check your records open the DNS console and check the Timestamp column, your servers should be set to static. If not, simply open the record then uncheck the Delete this record when it becomes stale box.

Once you have done that, refresh the DNS console the timestamp will now show static for that record.

Check all your server records and change them to static before moving onto the next step.

2] Enable DNS aging and scavenging on DNS zones

Do the following:

To make DNS aging and scavenging enabled by default for all DNS zones on a DNS server, you need to proceed as follows:

Now, proceed with the next and final step.

3] Enable DNS scavenging on at least one DNS server hosting primary copies of your DNS zones

Do the following:

That's it! That completes the setup of DNS Aging and Scavenging. 

Cele mai bune 5 jocuri arcade pentru Linux
În zilele noastre, computerele sunt mașini serioase folosite pentru jocuri. Dacă nu puteți obține noul scor mare, veți ști la ce mă refer. În această ...
Battle For Wesnoth 1.13.6 Development Released
Battle For Wesnoth 1.13.6 released last month, is the sixth development release in the 1.13.x series and it delivers a number of improvements, most no...
Cum se instalează League Of Legends pe Ubuntu 14.04
Dacă ești fan al League of Legends, atunci aceasta este o oportunitate pentru tine de a testa rula League of Legends. Rețineți că LOL este acceptat pe...