Delete this record when it becomes stale
Is there tool or script that can be used to list all host records in a DNS
zone where the "Delete this record when it becomes stale" setting is not set?
Re: Delete this record when it becomes stale
"Magnus Kirkerud" <MagnusKirkerud@discussions.microsoft.com> wrote in
> Is there tool or script that can be used to list all host records in a DNS
> zone where the "Delete this record when it becomes stale" setting is not
When you list a zone with DNSCmd.exe, I BELIEVE that all records which
can be aged will have [Aging:????] (where ????? represents the number of
seconds before the record becomes stale) -- check this.
If so, then the following (built-in*) commands will get you close:
dnscmd Your.DNS.Server /zoneprint yourzone.com. | findstr /v "[Aging" |
findstr /r /v "^;"
You can do better with add-on commands (Perl, grep etc) or if you know
all the details of FindStr which I almost never use except when offering
commands to those who may be dependent on the default tools.
Herb Martin, MCSE, MVP
(phone on web site)
|Tags: becomes, delete, record, stale|
|Thread Tools||Search this Thread|
|Similar Threads for: "Delete this record when it becomes stale"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Petville is getting Stale||Aganju||Video Games||6||27-02-2011 10:19 PM|
|Delete record from a java interface||Gunner 1||Software Development||5||19-01-2010 10:56 AM|
|Unable to delete record from gridview in C#||MAGALY||Software Development||4||18-01-2010 10:56 PM|
|Access: delete a record and insert it in another tab||Wguy2008||Software Development||5||02-04-2009 11:24 PM|
|Delete Stale DNS Records||Eric Guzman||Windows Server Help||2||07-10-2008 01:31 AM|