I am using Run Command in Guest to execute the below commands on a windows host. The account running the command has authorizations to run these command.
cmd.exe /c dnscmd xx.xx.xx.xx /recorddelete some.dns.host hostName1 A xx.xx.xx.xx /f
cmd.exe /c dnscmd xx.xx.xx.xx /recorddelete some.dns.host hostname1 PTR /f
(actual IP info and hostnames are concealed to protect the innocent)
Both run successfully (and as intended) if run interactively from a CMD prompt, I get the expected result and a nslookup on the hostname indicates '...can't find <hostname>: Non-existend domain' as expected. (img1 attached)
If run via the Run Command in Guest, the first command executes (to remove the A record, however, while the second command seems to run, the PTR record isn't removed and nslookup on the hostname returns 'Name: <hostname>" (img2 attached)
Thoughts?