protected function listRecordSetDomains($zoneId, $name) { $result = []; $nextName = null; $nextType = null; if (!empty($zoneId)) { do { if (isset($rrsList)) { $nextName = $rrsList->nextRecordName; $nextType = $rrsList->nextRecordType; } $rrsList = $this->getAws()->route53->record->describe($zoneId, $nextName, $nextType); foreach ($rrsList as $record) { if ('NS' == $record->type || 'SOA' == $record->type || $name . '.' == $record->name) { continue; } $result[] = ['domainName' => $record->name, 'aliasZoneId' => $zoneId, 'title' => self::RECORD_SETS_ALIAS_TARGET_TITLE]; } } while (!empty($rrsList->isTruncated)); } return $result; }