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
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
"Magnus Kirkerud" <MagnusKirkerud@discussions.microsoft.com> wrote in
message news:548330FC-8042-42BF-91AA-11861259A20F@microsoft.com...
> 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)
Bookmarks