Using a script (powershell for example) How can i get the total Queries on a DNS Server (Windows Server 2003 - Active Directory Environment) ?

Thanks

link|improve this question

25% accept rate
feedback

2 Answers

Try the dnscmd and it's statistics option. It's part of the resource kit.

link|improve this answer
feedback

For now

-i use PERFMON with the DNS Counter: Total Query Received/sec

-Perform for 24hours

-output in CSV file

-Open with Excel and SUM all the value

Any other ways to script this step ?

link|improve this answer
There's a WMI DNS provider, but I don't know if it would give this anyways. Does your perfmon approach work? Using PowerShell to read in the CSVs and summing the values would be easy. Answer the perfmon question and I can show how to sum once I test to see the format of the CSV. – Marco Shaw Jan 28 '10 at 21:59
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.