diff --git a/script.js b/script.js index 95453f9..40cc840 100644 --- a/script.js +++ b/script.js @@ -42,7 +42,7 @@ async function update(newIP) { if (!zones.length) throw new Error(`No ZONE "${ZONE}" found`) const zoneId = zones[0].id - const { result: records } = await cf.dnsRecords.browse(zoneId, { name: DNS_RECORD }) + const { result: records } = await cf.dnsRecords.browse(zoneId, { name: DNS_RECORD, type: 'A' }) const recordAlreadyExists = records.length if (recordAlreadyExists) {