A script to audit and resolve domains using specified DNS servers, fetching data from the hazard API.
This script performs DNS resolution tests on a list of domains fetched from the hazard API. It checks if the domains can be resolved by specified DNS servers and sends an email with the results.
- Fetches domain data from the hazard API.
- Resolves domains using multiple DNS servers.
- Supports a test mode that checks the latest 10 domains.
- Sends email notifications with detailed results.
- Outputs results in a structured format.
- Bash
curldigssmtpor another mail utility
- Clone this repository:
git clone <repository-url> cd AuditDomainHazardDNS
- Make the script executable:
chmod +x AuditDomainHazardDNS.sh- Run the script:
./AuditDomainHazardDNS.sh [--test]You can customize the following variables in the script:
recipient_email: Email addresses for the DNS server admins.subject: Subject line for the notification email.dns_servers: List of DNS servers to be tested.
The email sent after the script execution contains:
- A summary of the results indicating whether all domains resolved correctly.
- A detailed table of tested domains, DNS servers used, and results.
The script cleans up temporary files created during execution to avoid clutter.
This project is licensed under the MIT License.