Windows Server 2016 creates the local data DNS service
Our previous articles describe the configuration management of Windows Server 2016 intelligent DNS, and today we mainly introduce the creation of local data DNS service for Windows Server 2016, which is generally considered unreasonable by local people. But the local data for some special situation is still more useful, the biggest disadvantage of local data is not to synchronize with the primary DNS service to update the data, there is no more nonsense, to go back, to create the local data DNS service in two ways, the first: to create a secondary zone, after synchronizing the data, The local DNS service is created by synchronizing the data files, and another method is to export the configuration file of the primary DNS server and then create the primary zone locally through the configuration file. specifically see below:
We first obtain the configuration file by creating a new secondary DNS and then create the local DNS service through the configuration file
We first have to transfer the zone on the primary DNS server, otherwise the creation of the secondary zone will not get the data
When turned on, we need to install the DNS service on the new DNS service and then create a new zone.
We'll install the DNS server again through PowerShell
install-windowsfeature RSAT-DNS-SERVER,DNS
After the installation is complete, we open the DNS Manager
New Zone
Select Create secondary Zone
Enter DNS zone name-domain
Select the primary server IP address
Synchronization complete
After we view the synchronization, there is a Byssoft.com.dns configuration file next to C:\WINDOWS\SYSTEM32\DNS\, which is the configuration file for all DNS
We can open the file
然后我们备份改配置文件,byssoft.com.dns
Delete a secondary zone
New primary Zone
Fixed to DNS domain name
Using an existing configuration file
Create complete
Next we use the second method:
In fact, the second method of recommendation
We first need to export the records on the primary server
dnscmd /ZoneExport byssoft.com ZoneExport.txt dnscmd /ZoneExport [Name of DNS Zone] ZoneExport.txt
The exported file
We can view
Then we need to rename the file to the DNS service format and then copy it to the slave server and export it locally using the renamed configuration file.
Then follow the same procedure as above, select the profile to complete the wizard
Windows Server 2016 creates the local data DNS service