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
10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

WinInfo Short Takes: CES 2009 Special Edition

An often irreverent look at some of the week's other CES 2009 news, including covering the Vegas spectacle from the comfort of my own home, Windows 7 public beta, a weird Microsoft song application, Palm Pre, pending Microsoft mobile moves, and much more ...


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

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

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 © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing