Howto: Get the IP address of a domain in a one liner


Posted by Andrew McCombe on Thu May 12, 2011

I have a need in a bash shell to get the public ipaddress of a domain name.  Here’s how to achieve it:

Cool huh?