Skip to content

Commit

Permalink
feat(zone/nameservers): automatically make nameserver records canoncial
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetgallein committed Sep 2, 2024
1 parent 45eb375 commit 25269eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Resources/Zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ public function setApiRectify(bool $apiRectify): self
*/
public function setNameservers(array $nameservers): self
{
$this->nameservers = $nameservers;
$this->nameservers = array_map(function($ns) {
return rtrim($ns, '.') . '.';
}, $nameservers);

return $this;
}
Expand Down

0 comments on commit 25269eb

Please sign in to comment.