Are the zones AD integrated or standard?
Export-DNSServerZone and Get-DnsServerSetting will be your friends here.

DAMIEN SOLODOW
Senior Systems Engineer
317.447.6033 (office)
317.447.6014 (fax)
HARRISON COLLEGE

From: [email protected] [mailto:[email protected]] On 
Behalf Of Michael Leone
Sent: Friday, August 14, 2015 10:13 AM
To: [email protected]
Subject: [powershell] Backing up DNS

Hello. I want to write a script that will back up my DNS (by which I mean - 
server settings, zones - especially reverse zones, and - ideally - all resource 
records). We had an incident where most of our reverse zones disappeared one 
morning (we think it happened because the zones were set to also transfer to 
our SolarWinds server, which runs a DNS management module. I can't prove it, 
however, outside of the fact that the only times I've had major DNS issues were 
after we started using this module and including the SW server on the transfers.

Ideally, if I had had a backup of those zones, I could have re-created them 
from the backup (I think), rather than manually re-creating them.

Anyway: I tried looking through the MS Technet Gallery, but didn't find 
anything that leaped out at me. I can take a shot at doing it myself.

Would I need to do a "Get-DnsServer", and then cycle through the entries in the 
returned "ServerZone" array, feeding that into Get-DnsServerZone?


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to