diff --git a/src/Packet/Records.php b/src/Packet/Records.php index 2aea8c8..1a40380 100644 --- a/src/Packet/Records.php +++ b/src/Packet/Records.php @@ -34,7 +34,7 @@ private function generateKey(ResourceRecordTypeInterface $record): string return md5( $record->getRData() . $record->getHeader() - . $record->getType() + . $record->getType()->getName() . $record->getName() ); } @@ -75,7 +75,7 @@ public function getFilteredType(string $type, bool $single = false) : null|array $type = strtoupper(trim($type)); $result = []; foreach ($this->getRecords() as $record) { - if ($record->getType() === $type) { + if ($record->getType()->getName() === $type) { if ($single) { return $record; }