Created
March 7, 2018 11:06
-
-
Save ddtxra/3edf839bdf347091451f0d14dfbe26ac to your computer and use it in GitHub Desktop.
Check for mailservers validity with DIG MX and AWK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat domains.txt | awk 'BEGIN { ORS="\t" }; {print $1; system("dig +short mx "$1" | wc -l")}' > mailservers-declared-for-domain.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment