Use hostname instead of host

``link.host`` may also return the port number contrary to ``location.host``