pmcf 1.80.0 → 1.80.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.mjs +10 -5
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
normalizeIPAddress,
|
|
8
8
|
isLinkLocal
|
|
9
9
|
} from "./utils.mjs";
|
|
10
|
-
import { DNSRecord, dnsFullName
|
|
10
|
+
import { DNSRecord, dnsFullName } from "./dns-utils.mjs";
|
|
11
11
|
import { Base } from "./base.mjs";
|
|
12
12
|
import { addType } from "./types.mjs";
|
|
13
13
|
import { serviceAddresses } from "./service.mjs";
|
|
@@ -197,10 +197,15 @@ async function generateZoneDefs(dns, targetDir) {
|
|
|
197
197
|
|
|
198
198
|
let maxKeyLength;
|
|
199
199
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
if (isLocalDomain) {
|
|
201
|
+
for (const mail of dns.owner.findServices({
|
|
202
|
+
type: "smtp",
|
|
203
|
+
priority: "<10"
|
|
204
|
+
})) {
|
|
205
|
+
records.add(
|
|
206
|
+
DNSRecord("@", "MX", mail.priority, dnsFullName(mail.domainName))
|
|
207
|
+
);
|
|
208
|
+
}
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
console.log(`${nameService} ${domain}`, nameService.ipAddressOrDomainName);
|