Project

General

Profile

Actions

Bug #13237

closed

ERROR_ACCESS_DENIED when deleting DNS A record (dns_dnscmd plugin)

Added by Dmitry Sakun almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DNS
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Record creation works just fine but when you try to delete the host you will get access denied and HTTP 404 back from the smart proxy.

dnscmd.exe DC.example.com /RecordDelete example.com record.example.com. A /f

Command failed: ERROR_ACCESS_DENIED 5 0x5

It looks like it's necessary to include RRData (e.g. IP address in this case) when deleting A record.

Syntax: dnscmd ServerName /recorddelete ZoneName NodeName RRType RRData[/f]

Quick hint to fix it:
\modules\dns_dnscmd\dns_dnscmd_main.rb
38c38
< cmd = "/RecordDelete #{zone} #{fqdn}. A /f"
---

cmd = "/RecordDelete #{zone} #{fqdn}. A #{ip} /f"

DNS service is running on W2k12R2

Actions

Also available in: Atom PDF