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