DNS server compromise is unauthorized access to or control of a DNS server, its configuration, or its records; administrative privileges are not always needed. It can redirect traffic, manipulate queries, return malicious IP addresses, or enable other attacks. Affected servers include open recursive, authoritative, organizational recursive, and ISP-operated recursive servers.
DNS server compromises can be detected by manually checking server configurations and verifying that they are as intended. If automated configuration is used, then comparing to the source configurations can also be useful.
Checking server logs for unusual or unauthorized access from external locations can also indicate a server compromise.
A properly deployed IDR (Intrusion Detection and Response) or IDP (Intrusion Detection and Prevention) system can also detect server compromises. There are many options available for evaluation.
Automated checking of significant DNS records, e.g. parent domain A records and NS records, can show that a compromise may have taken place.
Details from Google Security about potentially state-sponsored hijacking via compromised DNS administration panels access through proxy servers.