public function queryServer($domain, $server = false)
    {
        $domain = strtolower($domain);

        if (!$server) {
            $server = $this->getWhoisServer($domain);
        }

        if (!$this->socket->connect($server, self::WHOIS_PORT)) {
            return false;
        }

        // @todo This shouldn't be hard coded
        if ($server == 'whois.verisign-grs.com') {
            $domain = '=' . $domain;
        }

        $this->socket->write($domain . "\r\n");

        $result = '';

        while (!$this->socket->closed()) {
            $result .= $this->socket->read();
        }

        $this->socket->disconnect();

        return $result;
    }