#! /usr/bin/env nix-shell #! nix-shell -p dig -p dash -i dash --impure # shellcheck shell=dash get_dns_types() { cat < [%s]\n" "$type" "$domain" fi } get_dns() { original_domain="$1" get_dns_types | while read -r type; do check_type "$original_domain" "$type" done # DKIM check_type "mail._domainkey.$original_domain" "TXT" # DMARC check_type "_dmarc.$original_domain" "TXT" } get_dns "$1"