This might not be the most efficient way, but it is satisfying, for me at least:nslookup 10.0.0.1 | grep "Name:" | awk '{print $2}'
nslookup 10.0.0.1 | grep "Name:" | awk '{print $2}'
host -t ptr 10.0.0.1 | awk '{print $5}'