how to resolve the ip address of a site ubuntu code example Example: linux get ip by domain $ dig +short somedomain.com