fix: use exact DirectAdmin DNS record deletion
This commit is contained in:
parent
7142c4cef8
commit
04f31306b5
1 changed files with 18 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -104,7 +104,7 @@ async function getDnsRecords() {
|
|||
}
|
||||
|
||||
async function deleteDnsRecord(name, ip) {
|
||||
const recordValue = `${name}=${ip}`;
|
||||
const recordValue = `name=${name}&value=${ip}`;
|
||||
const endpoint = `/CMD_API_DNS_CONTROL?domain=${encodeURIComponent(CONFIG.daDomain)}&action=select&arecs0=${encodeURIComponent(recordValue)}`;
|
||||
await daRequest(endpoint);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue