Howto: Get the IP address of a domain in a one liner
May 12th, 2011
Warning: This post is 12 years old. Some of this information may be out of date.
I have a need in a bash shell to get the public IP address of a domain name. Here's how to achieve it:
andrew@andrew:~$ dig +short A www.euperia.com 22.214.171.124
Previous →Hack to play minesweeper on Amazon Kindle