Monday, February 2, 2026
HomeMicrosoftHow to Backup DNS Server in 2022 Server

How to Backup DNS Server in 2022 Server

In this article, you will learn how to Backup DNS Server in 2022 Server. Domain name server/system or DNS is the heart of everything we do, on the LAN and on the internet. It is the directory book that converts name to IP address and IP address to name. So we do not have to remember these things that describe websites, hostnames, and other resources. The server DNS is usually considered an important infrastructure component. Click here for more details

Backup DNS Server 2022

To create DNS Windows Server 2022 backup.
We will use the dnscmd.exe with the PowerShell command to back up the zones to a text file, which is accessible for Windows Servers.
Second, we will delete DNS zones (jamiltech.local) from a server for creating a disaster.
In the next article, we will restore DNS zones (jamiltech.local) from a file that we backup up with dnscmd command.
How to take a Windows server DNS backup to a text file with dnscmd PowerShell.

Log in to the domain controller server, run the Windows PowerShell app, and then enter the following commands to backup the DNS server.

dnscmd DC2022 /ZoneExport jamiltech.local backup\jamiltech.local.dns.bkp
dnscmd DC2022 /ZoneExport _msdcs.jamiltech.local backup\_msdcs.jamiltech.local.dns.bkp

Where DC2022 is my DNS server name.

Backup DNS server PowerShell

The DNS backup copy (.txt file) will be stored in the backup directory.
“C:\Windows\System32\dns\backup”

Open Windows Explorer and then open the C:\Windows\System32\dns\backup folder to verify the backup.

C:\Windows\System32\dns\backup

How to Delete DNS Zones via DNS Manager

Open DNS Manager, expand your DNS server (DC2022) node, and then expand Forward Lookup Zones.
Right-click on jamiltecc.local zone and then choose to delete.

DNS Manager

Choose Yes

Warning delete the DNS zone

Select yes again to delete the zone from DNS Server.

Warning remove DNS zones

Summary

By following the above steps, you are able to backup the DNS server. In the next article, we will learn how to restore DNS zones in a way that permits high availability for your DNS

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments