Standard/TeamSpeak/TeamSpeak3/Adapter/TSDNS.php
public function resolve($tsdns)
  {
    $this->getTransport()->sendLine($tsdns);
    $repl = $this->getTransport()->readLine();
    $this->getTransport()->disconnect();

    if($repl->section(":", 0)->toInt() == 404)
    {
      throw new TSDNS\Exception("unable to resolve TSDNS hostname (" . $tsdns . ")");
    }

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("tsdnsResolved", $tsdns, $repl);

    return $repl;
  }
public function resolve($tsdns)
  {
    $this->getTransport()->sendLine($tsdns);
    $repl = $this->getTransport()->readLine();
    $this->getTransport()->disconnect();

    if($repl->section(":", 0)->toInt() == 404)
    {
      throw new TSDNS\Exception("unable to resolve TSDNS hostname (" . $tsdns . ")");
    }

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("tsdnsResolved", $tsdns, $repl);

    return $repl;
  }
Queries the TSDNS server for a specified virtual hostname and returns the result.

@param  string $tsdns
@throws TSDNS\Exception
@return TeamSpeak3_Helper_String