diff --git a/src/Dynadot/DynadotApi.php b/src/Dynadot/DynadotApi.php
index 1e634ce..7341a92 100644
--- a/src/Dynadot/DynadotApi.php
+++ b/src/Dynadot/DynadotApi.php
@@ -170,31 +170,6 @@ public function getDomainInfo(string $domain): DomainResponse\Domain
// set mapping
$sabreService->elementMap = [
- '{}NameServers' => function (Reader $reader) {
-
- $nameservers = [];
- $id = '';
-
- $children = (array)$reader->parseInnerTree();
-
- foreach ($children as $child) {
- if ($child['name'] == '{}ServerId') {
- $id = $child['value'];
- } elseif ($child['name'] == '{}ServerName') {
- if (!empty($id) && !empty($child['value'])) {
- $nameserver = new DomainResponse\NameServer();
-
- $nameserver->ServerId = $id;
- $nameserver->ServerName = $child['value'];
-
- $nameservers[] = $nameserver;
- }
- $id = null;
- }
- }
-
- return $nameservers;
- },
'{}Registrant' => $this->contactIdDeserializer,
'{}Admin' => $this->contactIdDeserializer,
'{}Technical' => $this->contactIdDeserializer,
@@ -214,6 +189,7 @@ public function getDomainInfo(string $domain): DomainResponse\Domain
$sabreService->mapValueObject('{}DomainInfoContent', DomainInfoResponse\DomainInfoContent::class);
$sabreService->mapValueObject('{}Domain', DomainResponse\Domain::class);
$sabreService->mapValueObject('{}NameServerSettings', DomainResponse\NameServerSettings::class);
+ $sabreService->mapValueObject('{}NameServer', DomainResponse\NameServer::class);
$sabreService->mapValueObject('{}Whois', DomainResponse\Whois::class);
$sabreService->mapValueObject('{}Folder', DomainResponse\Folder::class);
$sabreService->mapValueObject('{}Response', GeneralResponse\Response::class);
diff --git a/tests/ApiTests/MockHttpResponses/validDomainInfoResponseBody.txt b/tests/ApiTests/MockHttpResponses/validDomainInfoResponseBody.txt
index fceba58..a6a875c 100644
--- a/tests/ApiTests/MockHttpResponses/validDomainInfoResponseBody.txt
+++ b/tests/ApiTests/MockHttpResponses/validDomainInfoResponseBody.txt
@@ -1 +1,62 @@
-0successexample.com15126481470001323259347000Name Servers1201ns1.example.com1202ns2.example.com1203ns3.example.com1204ns4.example.com1301130213031304yesnonononofullnoauto-renew1501FolderName
\ No newline at end of file
+
+
+
+ 0
+ success
+
+
+
+ 123discounter.com
+ 1727349773000
+ 1664191373000
+
+ Name Servers
+
+
+ 1924415
+ ns-859.awsdns-43.net
+
+
+ 1468084
+ ns-1893.awsdns-44.co.uk
+
+
+ 1028302
+ ns-1307.awsdns-35.org
+
+
+ 1677079
+ ns-280.awsdns-35.com
+
+
+
+
+
+ 467231
+
+
+ 467231
+
+
+ 467231
+
+
+ 467231
+
+
+ yes
+ no
+ no
+ no
+ no
+ full
+ no
+ auto-renew
+
+
+ -1
+ (no folder)
+
+
+
+