Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
digga: show dns-settings from a domain e.g. MX, IP
#!/usr/bin/env bash
# -------------------------------------------------------------------
# digga: show dns-settings from a domain e.g. MX, IP
#
# usage: digga moelleken.org
digga()
{
if [ $# -eq 0 ]; then
echo "Usage: digga moelleken.org"
return 1
else
dig +nocmd "$1" ANY +multiline +noall +answer
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment