mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-12 22:14:49 +00:00
ns records cannot be combined with service records
This commit is contained in:
1 parent
8d404c779c
commit
90f532370f
1 file changed
+1
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user