Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.dns
Thread: Delete this record when it becomes stale

HTVi
TV Discussion Newsgroups

Delete this record when it becomes stale
Magnus Kirkerud 4/19/2007 2:48:01 PM
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?

Regards
Re: Delete this record when it becomes stale
"Herb Martin" <news[ at ]learnquick.com> 4/19/2007 4:02:29 PM

"Magnus Kirkerud" <MagnusKirkerud[ at ]discussions.microsoft.com> wrote in
message news:548330FC-8042-42BF-91AA-11861259A20F[ at ]microsoft.com...
[Quoted Text]
> 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?
>
> Regards

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
http://www.LearnQuick.Com
(phone on web site)


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen