dns: add porkbun
domain setup ui
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user