#!/bin/bash nslookup $1 | grep -A 2 'answer' echo '' nslookup -query=mx $1 | grep 'mail\ exchanger' echo '' whois $1 | grep 'Name\ Server' | sed 's/^ *//' | sort -u echo '' dnsdict6 -s4 $1 | grep $1 | grep -v 'stimate' | grep -v 'Starting' | sed '/Found/{x;p;x;}'