We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The grep -m1 is restricting me to only having 1 MX record resolved. I bumped it up to 5 (arbitrary). I'm not sure what would be the best generic case.
grep -m1
--- a/include/despf.inc.sh +++ b/include/despf.inc.sh @@ -81,7 +81,7 @@ dea() { # demx <domain> # Get MX record for a domain demx() { - mymx=$(mydig -t MX $1 | awk '{print $2}' | grep -m1 .) + mymx=$(mydig -t MX $1 | awk '{print $2}' | grep -m5 .) for name in $mymx; do dea $name $2; done }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
grep -m1
is restricting me to only having 1 MX record resolved. I bumped it up to 5 (arbitrary). I'm not sure what would be the best generic case.The text was updated successfully, but these errors were encountered: