Thursday, May 29, 2008

More good DNS stuff

http://blogs.technet.com/networking/archive/2008/05/21/export-dns-records-to-excel-to-read-time-stamps-and-static-records.aspx

Tuesday, May 20, 2008

Using DNSCMD.EXE

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