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 Ts3Exception("unable to resolve TSDNS hostname (" . $tsdns . ")");
        }

        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 Ts3Exception("unable to resolve TSDNS hostname (" . $tsdns . ")");
        }

        Signal::getInstance()->emit("tsdnsResolved", $tsdns, $repl);

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

@param  StringHelper|string $tsdns
@throws Ts3Exception
@return StringHelper