Created
February 15, 2019 08:37
-
-
Save lloiacono/ddbbde297735ac16a179ff2212efc454 to your computer and use it in GitHub Desktop.
Bulk MX lookup with awk and dig
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
awk '{printf("%s ",$1); system("dig -t mx +short " $0)}' somefile.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment