Deep thought 💭 on NSLookup Utility

In my job, I am continually looking up server IP addresses, but having to type nslookup and then copy the address to put it somewhere else, can be tedious. I don’t remember where I found this, but drop I drop this in my .bash_profile

function nl {
nslookup $1 | tail -2 | awk -F ":" '{print $2}' | pbcopy
Published: Dec 13, 2012 @jeredb →