dns: add porkbun

domain setup ui
This commit is contained in:
Girish Ramakrishnan
2023-03-16 10:24:31 +01:00
parent 489b598cd6
commit 3616fbb51c
11 changed files with 252 additions and 11 deletions
+2 -2
View File
@@ -940,13 +940,13 @@ async function upsertDnsRecords(domain, mailFqdn) {
const dmarcRecords = await dns.getDnsRecords('_dmarc', domain, 'TXT'); // only update dmarc if absent. this allows user to set email for reporting
if (dmarcRecords.length === 0) records.push({ subdomain: '_dmarc', domain: domain, type: 'TXT', values: [ '"v=DMARC1; p=reject; pct=100"' ] });
debug('upsertDnsRecords: will update %j', records);
debug(`upsertDnsRecords: will update ${domain} with ${JSON.stringify(records)}`);
for (const record of records) {
await dns.upsertDnsRecords(record.subdomain, record.domain, record.type, record.values);
}
debug('upsertDnsRecords: records %j added', records);
debug(`upsertDnsRecords: records of ${domain} added`);
}
async function setDnsRecords(domain) {