From c2faf18da601123771f3abf2aef6a3884701038e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 11 Sep 2025 13:10:50 +0200 Subject: [PATCH] Improve DNS validation copy further --- src/Appwrite/Network/Validator/DNS.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Network/Validator/DNS.php b/src/Appwrite/Network/Validator/DNS.php index f446efcdcf..1691f2a962 100644 --- a/src/Appwrite/Network/Validator/DNS.php +++ b/src/Appwrite/Network/Validator/DNS.php @@ -63,7 +63,15 @@ class DNS extends Validator $recordValuesVerbose = implode(', ', $this->recordValues); - return "Domain {$this->domain} has {$this->count} {$this->type} {$record} with wrong {$value}: {$recordValuesVerbose}"; + $msg = "Domain {$this->domain} has {$this->count} {$this->type} {$record} with wrong {$value}: {$recordValuesVerbose}."; + + if ($this->type === self::RECORD_CAA) { + $msg .= ' You can resolve this by adding our record too (recommended), or removing all other records.'; + } elseif ($this->type === self::RECORD_A || $this->type === self::RECORD_AAAA || $this->type === self::RECORD_CNAME) { + $msg .= ' You can resolve this by changing the record to haveour value.'; + } + + return $msg; } /**