A domain cannot be resolved to its IP address.
If your DNS is running locally, try restarting it. If not, check your DNS or add another server to /etc/resolve.conf (for example, the name server is 8.8.8.8).
You can also add the domain as a static entry in the hosts file:
On your linux server, add the DNS information to the / etc / hosts file using:
echo '127.0.0.1 www.otherdomain.com' >> /etc/hosts
... where 127.0.0.1 is the IP address of your site and www.otherdomain.com is the name of your domain.
You can find the IP address of any domain using nslookup, i.e.
nslookup www.otherdomain.com
source share