Since I'm always forgetting how to enumerate DNS records using dnscmd.exe...
For A records -
dnscmd.exe dns-server /enumrecords my.domain.com @ /child /type a /continue
For PTR records -
dnscmd.exe dns-server /zoneprint my.domain.com (or xxx.xxx.in-addr.arpa)
(make sure you have the 2003 server tools. Older versions of dnscmd.exe do NOT work)
Code to convert the Aging :
DateInterval = 3554631
testdate = DateAdd("h",DateInterval,"1/1/1601 00:00:00 AM")
WScript.Echo testdate
Tuesday, May 20, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment