Skip to content

Instantly share code, notes, and snippets.

@washal
Created January 12, 2016 12:46
Show Gist options
  • Select an option

  • Save washal/c5fa56eade178701d230 to your computer and use it in GitHub Desktop.

Select an option

Save washal/c5fa56eade178701d230 to your computer and use it in GitHub Desktop.
Collection of bash commands for quicker operations
> Get IP address of MX server for a domain
dig +short A $(dig +short MX domain.com | head -1 | cut -d' ' -f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment