include NonAuthoritative zone in tests

This commit is contained in:
pascal
2026-08-21 16:05:51 +02:00
parent a4900ae6ca
commit 1cef517a97
7 changed files with 176 additions and 1 deletions
@@ -1,5 +1,5 @@
{
"description": "Nameserver group and applied custom zone distributed to grp-dev; peer-a (with an extra DNS label) receives them, peer-c outside the group receives neither.",
"description": "Nameserver group and applied custom zones distributed to grp-dev; peer-a (with an extra DNS label) receives them, peer-c is outside that group and receives only the zone distributed to grp-ops. Zone flags travel per zone: both grp-dev zones are match-only (NonAuthoritative), only search-off.internal. disables the search domain, and the built-in peer zone stays authoritative.",
"peers": [
"peer-a",
"peer-c"
@@ -45,6 +45,27 @@
}
]
},
{
"Domain": "search-off.internal.",
"SearchDomainDisabled": true,
"NonAuthoritative": true,
"Records": [
{
"Name": "alias.search-off.internal.",
"Type": "5",
"Class": "IN",
"TTL": "300",
"RData": "app.search-off.internal."
},
{
"Name": "app.search-off.internal.",
"Type": "1",
"Class": "IN",
"TTL": "300",
"RData": "10.10.0.6"
}
]
},
{
"Domain": "netbird.test.",
"Records": [
@@ -22,6 +22,19 @@
"RData": "100.64.0.3"
}
]
},
{
"Domain": "ops-only.internal.",
"NonAuthoritative": true,
"Records": [
{
"Name": "tool.ops-only.internal.",
"Type": "1",
"Class": "IN",
"TTL": "300",
"RData": "10.10.0.7"
}
]
}
],
"ForwarderPort": "22054"
@@ -47,6 +47,28 @@
{"Name": "db.corp.internal.", "Type": 1, "Class": "IN", "TTL": 300, "RData": "10.10.0.5"}
]
}
},
{
"DistributionGroups": ["grp-dev"],
"Zone": {
"Domain": "search-off.internal.",
"NonAuthoritative": true,
"SearchDomainDisabled": true,
"Records": [
{"Name": "app.search-off.internal.", "Type": 1, "Class": "IN", "TTL": 300, "RData": "10.10.0.6"},
{"Name": "alias.search-off.internal.", "Type": 5, "Class": "IN", "TTL": 300, "RData": "app.search-off.internal."}
]
}
},
{
"DistributionGroups": ["grp-ops"],
"Zone": {
"Domain": "ops-only.internal.",
"NonAuthoritative": true,
"Records": [
{"Name": "tool.ops-only.internal.", "Type": 1, "Class": "IN", "TTL": 300, "RData": "10.10.0.7"}
]
}
}
]
}