ns records cannot be combined with service records

This commit is contained in:
William Harrison committed 2025-05-13 17:39:01 +08:00
1 parent 8d404c779c
commit 90f532370f
1 file changed
+1
+1
View File
@@ -286,6 +286,7 @@ t("All files should have valid records", (t) => {
recordKeys.length === 1 || (recordKeys.length === 2 && recordKeys.includes("DS")),
`${file}: NS records cannot be combined with other records, except for DS records`
);
t.true(!data.services, `${file}: Service records cannot be present when NS records are defined`);
}
if (recordKeys.includes("DS")) {
t.true(recordKeys.includes("NS"), `${file}: DS records must be combined with NS records`);