Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Delete this record when it becomes stale

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-04-2007
Magnus Kirkerud
 
Posts: n/a
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?

Regards

Reply With Quote
  #2  
Old 19-04-2007
Herb Martin
 
Posts: n/a
Re: Delete this record when it becomes stale


"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)


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 04:52 AM.