Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks

share|improve this question

2 Answers 2

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

share|improve this answer

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 ?

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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