pmcf 1.100.0 → 1.100.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/services/dns.mjs +8 -7
package/package.json
CHANGED
package/src/services/dns.mjs
CHANGED
|
@@ -161,7 +161,8 @@ export class DNSService extends Service {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
async *preparePackages(dir) {
|
|
164
|
-
const
|
|
164
|
+
const location = this.location;
|
|
165
|
+
const name = location.name;
|
|
165
166
|
const p1 = join(dir, "p1");
|
|
166
167
|
const packageData = {
|
|
167
168
|
dir: p1,
|
|
@@ -169,7 +170,7 @@ export class DNSService extends Service {
|
|
|
169
170
|
outputs: this.outputs,
|
|
170
171
|
properties: {
|
|
171
172
|
name: `named-${name}`,
|
|
172
|
-
description: `named definitions for ${
|
|
173
|
+
description: `named definitions for ${location.fullName}`,
|
|
173
174
|
access: "private"
|
|
174
175
|
}
|
|
175
176
|
};
|
|
@@ -203,7 +204,7 @@ export class DNSService extends Service {
|
|
|
203
204
|
|
|
204
205
|
packageData.properties = {
|
|
205
206
|
name: `named-zones-${name}`,
|
|
206
|
-
description: `zone definitions for ${
|
|
207
|
+
description: `zone definitions for ${location.fullName}`,
|
|
207
208
|
dependencies: ["mf-named"],
|
|
208
209
|
replaces: ["mf-named-zones"],
|
|
209
210
|
access: "private"
|
|
@@ -283,7 +284,7 @@ async function generateZoneDefs(dns, packageData) {
|
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
for (const domain of dns.localDomains) {
|
|
286
|
-
const
|
|
287
|
+
const locationName = location.name;
|
|
287
288
|
const reverseZones = new Map();
|
|
288
289
|
|
|
289
290
|
const config = {
|
|
@@ -296,7 +297,7 @@ async function generateZoneDefs(dns, packageData) {
|
|
|
296
297
|
|
|
297
298
|
const zone = {
|
|
298
299
|
id: domain,
|
|
299
|
-
file: `${
|
|
300
|
+
file: `${locationName}/${domain}.zone`,
|
|
300
301
|
records: new Set([SOARecord, NSRecord, locationRecord])
|
|
301
302
|
};
|
|
302
303
|
config.zones.push(zone);
|
|
@@ -310,7 +311,7 @@ async function generateZoneDefs(dns, packageData) {
|
|
|
310
311
|
|
|
311
312
|
zone.catalogZone = {
|
|
312
313
|
id: `catalog.${domain}`,
|
|
313
|
-
file: `${
|
|
314
|
+
file: `${locationName}/catalog.${domain}.zone`,
|
|
314
315
|
records: new Set([
|
|
315
316
|
SOARecord,
|
|
316
317
|
NSRecord,
|
|
@@ -353,7 +354,7 @@ async function generateZoneDefs(dns, packageData) {
|
|
|
353
354
|
reverseZone = {
|
|
354
355
|
id: reverseArpa,
|
|
355
356
|
type: "plain",
|
|
356
|
-
file: `${
|
|
357
|
+
file: `${locationName}/${reverseArpa}.zone`,
|
|
357
358
|
records: new Set([SOARecord, NSRecord])
|
|
358
359
|
};
|
|
359
360
|
config.zones.push(reverseZone);
|