Commit 05c33709 authored by Paul Colin Hennig's avatar Paul Colin Hennig
Browse files

v

parent 2588d9a6
......@@ -622,15 +622,15 @@ module.exports.PowerdnsClient = class {
if (e.toString().includes('Conflict')) console.log('domain already exists: skipping creation')
});
await this.setRecords([{
name: zone.domain,
name: zone.domain.match(/\..*$/)[0].substr(1),
type: "SOA",
ttl: 3600,
content: [`${this.absoluteName(zone.nameserver[0])} ${zone.hostmasterEmail.replace('@','.')}. 2020111501 10800 3600 604800 3600`]
}, {
name: zone.domain,
name: zone.domain.match(/\..*$/)[0].substr(1),
type: "NS",
ttl: 3600,
content: zone.nameserver.map(e => this.absoluteName(e.match(/\..*$/)[0].substr(1)))
content: zone.nameserver.map(e => this.absoluteName(e))
}]).catch(e => {
console.log(e)
});
......
{
"name": "@firstdorsal/powerdns-api",
"version": "1.7.3",
"version": "1.7.4",
"description": "Nodejs PowerDNS API Client.",
"main": "index.js",
"author": "Paul Colin Hennig",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment