diff --git a/src/index.mjs b/src/index.mjs index af77717..b6eea7b 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -4,7 +4,7 @@ import { promises as fs } from "fs"; import { execSync as exec } from "child_process"; class updateBind { - bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { 135.181.244.181; };\n};\n`; + bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { ${cfg.bind.master}; };\n};\n`; fetchApi = async path => (await fetch(`https://${cfg.api.host}/${path}`, { headers: { "X-API-Key": cfg.api.key } })).json(); constructor() {