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

May 12, 2011

Image for Howto: Get the IP address of a domain in a one liner from unsplash.com

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

[email protected]:~$ dig +short A www.euperia.com
193.228.155.183

Cool huh?