Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Find SMTP server

dig +nocmd $DOMAIN MX +noall +answer | awk '{print $5 " " $6}' | sort  -n | awk '{print substr($2,1,length($2)-1) " " $1 }'
https://snipt.net/embed/34e75d3e86034660caa8f3dcd4c20963/
https://snipt.net/raw/34e75d3e86034660caa8f3dcd4c20963/
34e75d3e86034660caa8f3dcd4c20963
bash
Bash
1
2016-12-02T09:18:21
True
False
False
/api/public/snipt/26901/
find-smtp-server
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>dig +nocmd <span class="nv">$DOMAIN</span> MX +noall +answer <span class="p">|</span> awk <span class="s1">&#39;{print $5 &quot; &quot; $6}&#39;</span> <span class="p">|</span> sort -n <span class="p">|</span> awk <span class="s1">&#39;{print substr($2,1,length($2)-1) &quot; &quot; $1 }&#39;</span> </span></pre></div> </td></tr></table>
dig, dns, mail, smtp
Copyrighted, illegal, or inappropriate content? Email [email protected].