diff --git a/domains/auth.json b/domains/auth.json new file mode 100644 index 000000000..36646103a --- /dev/null +++ b/domains/auth.json @@ -0,0 +1,10 @@ + { + "owner": { + "username": "@is-a-dev/maintainers", + "email": "mahir@molai.dev" + }, + "record": { + "A": ["199.36.158.100"] + } + } + diff --git a/utils/domain-service.js b/utils/domain-service.js index 7829e7431..81421f7aa 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -14,7 +14,7 @@ const recordToRedirection = ({ name, address }) => ({ }); const recordToZone = ({ name, type, address, id, priority }) => ({ line: id, - name, + name: name === '@' ? `${DOMAIN_DOMAIN}.` : name, type, address, ...(type === 'MX' ? { priority } : {}), @@ -79,7 +79,7 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => { const failed = results.filter(x => (x.result || {}).status != 1); log(`${values.length - failed.length}/${values.length}`); - failed.length && log(failed); + failed.length && log(JSON.stringify(failed, null, 2)); return null; });