Tip

Scavenging stale records

Scavenging stale records
Barrie Sosinsky

DNS records are not always deleted correctly. When a user goes offline unexpectedly a computer can be disconnected before it can delete its resource records. These records are dubbed stale records and can create problems for DNS. A DNS server may inadvertently respond to a query with a stale record. Stale records also take up storage on the DNS server. A stale record may deny a valid client computer an update because the PTR record is owned by another object.

To avoid stale record problems, Windows 2000 DNS supports aging and scavenging, an excellent tool which can be configured to search for and delete records in the DNS database that meet specified criteria. DNS administrators can manage aging and scavenging by managing parameters:

  • DNS servers by default are configured with scavenging disabled. An administrator must enable scavenging on a per-server basis. Only primary servers can be enabled to scavenge.
  • Scavenging can be enabled on a zone-by-zone basis.
  • Records are available for scavenging when they have gone a specified period without being refreshed.

To use DNS scavenging effectively, it is important to understand record aging. Record aging is based on updates and refreshes. A refresh is simply an update of the record's timestamp. Records are refreshed when the record is created, again when the record is updated. It is also refreshed when a DHCP client computer registers,

    Requires Free Membership to View

or when the record is queried with a prerequisite-only update.

Refreshes are further restricted by no-refresh cycles. During the no-refresh interval, only a record update is allowed to change the timestamp. This starts the life cycle again. When the no-refresh interval expires, the record may be refreshed in any fashion for a specified period. When the refresh interval expires, the record is eligible for scavenging.

Records with a zero-value timestamp are never scavenged. Records created in any manner other than dynamic update have a zero-value timestamp. You can make that record available for scavenging by changing the timestamp to any non-zero value.

When scavenging, a server examines each record in the zone. If a record has a zero value, it is ignored; if the record is stale, it is deleted. A stale record has a non-zero timestamp that is less than the current time minus the refresh interval minus the no-refresh interval. More information on this topic may be obtained from MCSE "Windows 200 Network Infrastructure Design" a training guide.


Barrie Sosinsky (barries@killerapps.com)is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


This was first published in January 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.