linux get ip by domain

Shell
$ dig +short somedomain.com
Source

Also in Shell: