pmcf 6.22.2 → 6.22.4
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 +2 -2
- package/src/core-service.mjs +1 -3
- package/src/services/bind.mjs +27 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.22.
|
|
3
|
+
"version": "6.22.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"aggregated-map": "^1.0.10",
|
|
54
54
|
"content-entry-transform": "^1.7.0",
|
|
55
|
-
"ip-utilties": "^3.
|
|
55
|
+
"ip-utilties": "^3.11.0",
|
|
56
56
|
"npm-pkgbuild": "^20.8.13",
|
|
57
57
|
"pacc": "^11.1.2",
|
|
58
58
|
"package-directory": "^8.2.0",
|
package/src/core-service.mjs
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -46,7 +46,11 @@ class bind_zone extends Base {
|
|
|
46
46
|
static attributes = {
|
|
47
47
|
id: { ...name_attribute, name: "id" },
|
|
48
48
|
file: { ...string_attribute, name: "file" },
|
|
49
|
-
records: {
|
|
49
|
+
records: {
|
|
50
|
+
...string_attribute_writable,
|
|
51
|
+
collection: true,
|
|
52
|
+
name: "records"
|
|
53
|
+
},
|
|
50
54
|
foreign: { ...boolean_attribute, name: "foreign" }
|
|
51
55
|
};
|
|
52
56
|
|
|
@@ -138,7 +142,9 @@ class bind_zone_config extends Base {
|
|
|
138
142
|
const dir = outputControl.dir;
|
|
139
143
|
const group = this.owner;
|
|
140
144
|
|
|
141
|
-
console.log(
|
|
145
|
+
console.log(
|
|
146
|
+
`config: ${group.name}/${this.name}${this.foreign ? " foreign" : ""}`
|
|
147
|
+
);
|
|
142
148
|
|
|
143
149
|
const content = [];
|
|
144
150
|
|
|
@@ -394,14 +400,16 @@ class bind_group extends Base {
|
|
|
394
400
|
)
|
|
395
401
|
);
|
|
396
402
|
|
|
397
|
-
const reverseZone =
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
const reverseZone =
|
|
404
|
+
this.hasReverse && na.subnet.prefix &&
|
|
405
|
+
this._zones.getOrInsertComputed(
|
|
406
|
+
reverseArpa(na.subnet.prefix),
|
|
407
|
+
domain =>
|
|
408
|
+
this.intoCatalog(
|
|
409
|
+
new bind_zone(this, domain, config, locationName),
|
|
410
|
+
locationName
|
|
411
|
+
)
|
|
412
|
+
);
|
|
405
413
|
|
|
406
414
|
if (host && !hosts.has(host)) {
|
|
407
415
|
hosts.add(host);
|
|
@@ -480,13 +488,15 @@ class bind_group extends Base {
|
|
|
480
488
|
)
|
|
481
489
|
);
|
|
482
490
|
|
|
483
|
-
reverseZone
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
491
|
+
if (reverseZone) {
|
|
492
|
+
reverseZone.records.add(
|
|
493
|
+
DNSRecord(
|
|
494
|
+
dnsFullName(reverseArpa(address)),
|
|
495
|
+
"PTR",
|
|
496
|
+
dnsFullName(domainName)
|
|
497
|
+
)
|
|
498
|
+
);
|
|
499
|
+
}
|
|
490
500
|
}
|
|
491
501
|
}
|
|
492
502
|
}
|