From 25269ebbc9d8a1be53603cfaf3be0291693aa93c Mon Sep 17 00:00:00 2001 From: Bennet Gallein Date: Mon, 2 Sep 2024 08:12:52 +0200 Subject: [PATCH] feat(zone/nameservers): automatically make nameserver records canoncial --- src/Resources/Zone.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Resources/Zone.php b/src/Resources/Zone.php index b4adcaf..84b26dc 100644 --- a/src/Resources/Zone.php +++ b/src/Resources/Zone.php @@ -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; }