Scavenging DNS records

Hello, I have multiple DNS entries for many IP addresses on the domain and my aim is to delete all those record/names that do not exist. I have enabled scavenging and retained the default 7 day settings. The problem is that the stale, out of date records are not scavenged. I started with 570 DNS entries of which 100 are no longer valid and after Server 2003 scavenges i am left with 570 records. What am I doing wrong? Manual scavenge does not work either. IP addresses for this domain are static.

Many Thanks, Aelara.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Chris DentConnect With a Mentor PowerShell DeveloperCommented:


Your second setting does the same as the first, but for all zones. I think you had Server Properties / Advanced in mind for that one? That's the section that actually executes the Scavenging process.

Chris DentPowerShell DeveloperCommented:

Hi Aelara,

How long did you get it?

Because when you first enable Aging it sets a lock on the zone for the length of a Refresh Interval (7 days by default). Until that has passed no records can be scavenged from the zone.

You can see the next time it can be Scavenged by selecting View, Advanced then opening the Aging properties in the zone.

Chris DentPowerShell DeveloperCommented:

> How long did you get it?

Should read...

How long did you give it?

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

KrisdeepConnect With a Mentor Commented:
DNS scavenging has to be enable in two levels first the DNS zone second the sever DNS level.These images might give you an idea.

If the default settings is set it will scanveng in the next 7 days even if you force it  .Leave the defaults if you haven't made any changes to your DHCP lease cycles.

Let me know how it goes
Hey Chris,
You would have to set it in the zones as mentioned if you put it on the above zone it will not clear out all zones unless that zone has scavenging enabled. I hope this would be useful.
Chris DentPowerShell DeveloperCommented:

Hey Krisdeep,

Agreed, it's just if you have a mixture of zones, and some don't need Scavenging the first screenshot is appropriate. If you just want to do it for everything then the second is. It's either / or rather than both, if you see what I mean :)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.