pmcf 2.62.4 → 2.63.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.62.4",
3
+ "version": "2.63.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -400,6 +400,7 @@ export class BindService extends ExtraSourceService {
400
400
  configs.push(catalogConfig);
401
401
 
402
402
  zone.catalogZone = {
403
+ catalog: true,
403
404
  id: `catalog.${domain}`,
404
405
  file: `${locationName}/catalog.${domain}.zone`,
405
406
  records: new Set([
@@ -555,6 +556,8 @@ export class BindService extends ExtraSourceService {
555
556
  console.log(`config: ${config.name}`);
556
557
 
557
558
  const content = [];
559
+ const openContent = [];
560
+
558
561
  for (const zone of config.zones) {
559
562
  console.log(` file: ${zone.file}`);
560
563
 
@@ -582,6 +585,14 @@ export class BindService extends ExtraSourceService {
582
585
  content.push(`};`);
583
586
  content.push("");
584
587
 
588
+ if (!zone.catalog) {
589
+ openContent.push(
590
+ `zone \"${zone.id}\" {`,
591
+ ` in-view protected;`,
592
+ "}"
593
+ );
594
+ }
595
+
585
596
  let maxKeyLength = 0;
586
597
  for (const r of zone.records) {
587
598
  if (r.key.length > maxKeyLength) {
@@ -603,6 +614,14 @@ export class BindService extends ExtraSourceService {
603
614
  config.name,
604
615
  content
605
616
  );
617
+
618
+ if (openContent.length) {
619
+ await writeLines(
620
+ join(packageData.dir, "etc/named/open"),
621
+ config.name,
622
+ openContent
623
+ );
624
+ }
606
625
  }
607
626
  }
608
627
  }