linux commmand to get ip of a domain code example Example: linux get ip by domain $ dig +short somedomain.com