pmcf 4.13.0 → 4.13.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/dns-utils.mjs +2 -1
- package/src/services/bind.mjs +2 -2
package/package.json
CHANGED
package/src/dns-utils.mjs
CHANGED
|
@@ -20,7 +20,8 @@ export function sortZoneRecords(a, b) {
|
|
|
20
20
|
return order;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const numSortable =
|
|
23
|
+
const numSortable = record =>
|
|
24
|
+
record.type === "PTR" && record.key.indexOf(".arpa") > 0;
|
|
24
25
|
|
|
25
26
|
if (numSortable(a) && numSortable(b)) {
|
|
26
27
|
const toNum = key => {
|
package/src/services/bind.mjs
CHANGED
|
@@ -565,7 +565,7 @@ export class BindService extends ExtraSourceService {
|
|
|
565
565
|
file: `${directory}/catalog.${name}.zone`,
|
|
566
566
|
records: new Set([
|
|
567
567
|
...this.defaultRecords,
|
|
568
|
-
DNSRecord(
|
|
568
|
+
DNSRecord("version", "TXT", '"2"')
|
|
569
569
|
])
|
|
570
570
|
};
|
|
571
571
|
outputControl.catalogs.set(directory, catalogZone);
|
|
@@ -582,7 +582,7 @@ export class BindService extends ExtraSourceService {
|
|
|
582
582
|
|
|
583
583
|
const hash = createHmac("sha1", zone.id).digest("hex");
|
|
584
584
|
catalogZone.records.add(
|
|
585
|
-
DNSRecord(`${hash}.zones
|
|
585
|
+
DNSRecord(`${hash}.zones`, "PTR", dnsFullName(zone.id))
|
|
586
586
|
);
|
|
587
587
|
|
|
588
588
|
return catalogZone;
|