added server.prototype.getDomain