VMware Cloud Community
orian
Hot Shot
Hot Shot

vmware orchestrator - DNS

Hi,

What is the best way to delete records from a DNS server?

Is there a DNS plugin like the active directory plugin?

Thanks!

5 Replies
ChrisMueller85
Enthusiast
Enthusiast

Based on your query about the AD plugin I assume you are talking about Microsoft DNS server.

You could access the windows server by using the powershell plugin.

Microsoft Documentation:

Domain Name System (DNS) Server Cmdlets

tschoergez
Leadership
Leadership

For windows DNS: Check these: http://kaloferov.com/blog/lets-vroc-with-vro/

Huge load of vRO workflows that wrap the cmdlet mentioned.

If you use a Linux DNS (e.g. bind or so): SSH / SCP plugin is your friend, to edit the config files on the DNS server.

Regards,

Joerg

0 Kudos
Pyrochaser
Contributor
Contributor

Yes there is a Windows Snap-in for Windows DNS that you can load from a DNS server or if you have the RSAT tools installed you could launch it that way as well.

Start button

in Search or in Run type MMC (Usually prompted for UAC elevation)

In the console window Click the File Menu option in the upper left corner

Select Add/Remove Snap-in

Select DNS

Click the Add button in middle of window

Click ok

Find the record within your DNS forward or reverse lookup records that you wish to remove and right click and delete it.

This should propagate out to all other Windows DNS server instances.

If done from a DNS server it's best to do it from the Global Catalog server.

Hope this helps.

0 Kudos
jengl
Enthusiast
Enthusiast

Hey orian‌,

we use the following batch-scripts:

Script manager batch script samples (Local administrator and managing DNS records)

It uses the guest script manager package from:

Guest script manager package

And only needs a management VM with dnsmcd installed.

Regards,

jengl

0 Kudos
Pyrochaser
Contributor
Contributor

If your question was about PowerShell,

You could also check these two pages for more information about PowerShell scripting options to remove records:

Microsoft Remove-DnsServerResourceRecord command page

https://technet.microsoft.com/en-us/library/jj649872.aspx

Robin CM's IT Blog - Script examples for remove DNS records and checks to confirm they even exist

Get and delete DNS A and PTR records via PowerShell | Robin CM's IT Blog

I hope some of this information can help out! Smiley Happy

0 Kudos