public function getWhoisServer($domain)
    {
        $domain = strtolower($domain);

        $tld = $this->getTld($domain);

        if (!isset($this->server[$tld])) {
            throw new UnknownTldException("$tld is not in the list of servers.");
        }

        return $this->server[$tld];
    }
public function getWhoisServer($domain)
    {
        $domain = strtolower($domain);

        $tld = $this->getTld($domain);

        if (!isset($this->server[$tld])) {
            throw new UnknownTldException("$tld is not in the list of servers.");
        }

        return $this->server[$tld];
    }
public function getWhoisServer ( $ domain ) { $ domain = strtolower ( $ domain ) ; $ tld = $ this -> getTld ( $ domain ) ; if ( ! isset ( $ this -> server [ $ tld ] ) ) { throw new UnknownTldException ( "$tld is not in the list of servers." ) ; } return $ this -> server [ $ tld ] ; }
Returns the whois server for the given domain name.

@param string $domain

@return string

@throws UnknownTldException
Returns the whois server for the given domain name .