diff --git a/utils/checkRecords.js b/utils/checkRecords.js index a9dc68a..2f2cfab 100644 --- a/utils/checkRecords.js +++ b/utils/checkRecords.js @@ -8,7 +8,10 @@ function checkRecords(data) { // Check A record if (recordType.toLowerCase() === 'a') { - return checkIfValidIP(data.target[recordType].value); + for (const record of data.target[recordType].value) { + if (checkIfValidIP(record) == false) return false; + } + return true; } // Check CNAME record