Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


April 2007

Configuring DNS Scavenging


RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Ask the Experts

What's DNS scavenging, and why would I need it?
With Windows 2000 and the introduction of dynamic DNS (DDNS), whereby computers register their own hostname to IP address records (or the DHCP server registers on the client's behalf), the DNS zones can quickly become polluted with out-of-date records. To resolve this problem, you can configure how long records should stay in the zone before being removed or scavenged. To enable scavenging for a DNS zone, perform these steps:

  1. Right-click a zone in the Microsoft Management Console (MMC) DNS Management snap-in and select Properties.
  2. Click the Aging button.
  3. Select the Scavenge stale resource records check box, as Figure 1 shows. You'll see two options: no-refresh interval and refresh interval. The no-refresh interval stops unnecessary updates on an existing record, thus reducing replication traffic. The default is seven days, so any attempt to reregister the record within seven days will be ignored. The refresh interval is the time between when the no-refresh interval expires and the record is considered stale. If you leave the default of seven days, the client would need to reregister within 14 days (but after seven days).
  4. Leave the default settings and click OK.

The values for the refresh and no-refresh settings should be based on the DHCP lease time. The default lease time is eight days, which works well with seven-day no-refresh and refresh intervals. If you reduce the lease times, you should also reduce the refresh and no-refresh intervals to ensure that stale records aren't left in the DNS zones for too long. Also, the sum of the no-refresh and refresh values must be greater than the DHCP lease time; otherwise, records could be scavenged before the DHCP lease has expired.

The actual DNS scavenging by default occurs once a week. If your refresh intervals are much smaller than a week, you should configure the scavenging to occur more often. To do so, use the dnscmd command line tool, as follows:

dnscmd /config /scavenginginterval
  <hours> 

This command updates the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DNSParameters\scavenginginterval registry subkey.

End of Article



Reader Comments
aaaaaaaaaaadsfd

pradeepsinghkss June 09, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Microsoft: Save Money ... By Paying for Software

Microsoft this week adopted an interesting tactic in its long-running battle with open source software: Businesses looking to save money over the long haul should simply pay for software instead of moving to free, open source solutions. The rationale? ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Microsoft Delivers Service Pack 2 Beta 2 for Vista, Server 2008

Microsoft on Tuesday announced the availability of the Beta 2 version of Service Pack 2 (SP2) for Windows Vista and Windows Server 2008. Since both operating systems were developed from the same code base, they have a common servicing structure and thus ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing