public function getSecondaryDnsDomainsInfo($domain, $domain2getInfo) { $domain = (string) $domain; if (!$domain) { throw new BadMethodCallException('Parameter $domain is missing.'); } $domain2getInfo = (string) $domain2getInfo; if (!$domain2getInfo) { throw new BadMethodCallException('Parameter $domain2getInfo is missing.'); } try { $r = $this->get('dedicated/server/' . $domain . '/secondaryDnsDomains/' . $domain2getInfo)->send(); } catch (\Exception $e) { throw new ServerException($e->getMessage(), $e->getCode(), $e); } return $r->getBody(true); }