host is the host name from the URL. This tries to resolve the host name and returns true if it succeeds.