The invention relates to an automatic testing method and system for DNS monitoring service. The method comprises the steps of step 1 designating IP and ports of the to-be-tested services and to-be-tested DNS server, step 2, according to test use cases, differentiating different test scenarios and writing test use case files, step 3, according to use case files, writing configuration files of monitoring items to designate the monitoring scenarios to each use case, step 4, according to the configuration files of each use case, writing the corresponding anticipated result files, step 5, through an automatic test procedure, running the test use cases one by one, sending query packages to the to-be-tested DNS server, comparing feedback results with the anticipated results, step 6, after all the use cases are run, generating a test report based on the comparison results obtained in step 5. The automatic testing method and system for DNS monitoring service can save the cost of manual test, reduce the risks of manual mistakes, and achieve the fast, reliable and automatic tests of DNS monitoring service system.