Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Query DNS secondary zone for Master servers

$
0
0

Is there a way via PowerShell to query a DNS secondary zone and return the list of Master Servers? I guess I'm essentially looking for a Get equivalent of Add-DnsServerSecondaryZone but that doesn't exist as far as I can see.

My aim is to create a script for deleting a secondary zone from each of our DNS servers (simply enough), but before I delete it I'd like to retrieve the master server details so I can spit them out into a logfile. That way should someone accidentally delete the wrong secondary we can see from the logs where it was previously pointing to and set it up again.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>