This article is a step-by-step tutorial on how to configure DNS forwarding in Windows Server 2012 R2 version. In the continuation of this tutorial, we will teach you how to create a DNS forwarder using DNS Manager and PowerShell.
Simply put, DNS forwarding is asking for help finding an address. The default method is that DNS server sends queries that cannot be answered to a list of DNS servers on the Internet called root hints.
But if DNS forwarding is configured, it sends queries to the destination we call the forwarder.
How to configure DNS Forwarding in Windows Server 2012 R2 version
DNS server installation on Windows Server is done with the help of DNS manager or PowerShell.
How to create a DNS forwarder using DNS Manager
In the server where the DNS server roll is installed, open Sever Manager and then go to Tool> DNS to enter DNS Manager.
Right-click on the DNS Server name and click Properties.
Enter the Forwarder tab and click Edit.
Enter the IP address of the other DNS server (forwarder) and then press Enter. If the IP address is valid, a green tick will be displayed. Do this for each other forwarder server.
Click OK to save the settings.
How to create a DNS forwarder using PowerShell
As we said, you can do this with PowerShell as well. To do this, enter the following command:
Add-DnsServerForwarder –IPAddress < IP Address >
The following command is used for the same purpose:
Set-DnsServerForwarder –IPAddress < IP Address >
Just enter the relevant IP address to execute the command correctly. You can add multiple forwarders in one command by separating their IP addresses using commas (,). Note that there is a difference between the above two commands. The Add command adds the specified forwarder to the list of forwarders, but the Set command replaces the existing forwarders with the specified IP address.
You can see an example of putting the IP address in the forwarder command in the image below.
How to work with DNS Forwarding on Windows DNS server
Before configuring DNS forwarding, you need to make sure that recursion is not disabled. DNS forwarding requires recursion to request information from forwarders for clients.
By default, recursion is enabled, but in some cases, it may be disabled. To check this, you need to enter the DNS server settings and go to the Advanced tab. Then in the Server Option section, make sure that the disable recursion option is not checked.
This article teaches you how to configure DNS Forwarding in Windows Server 2012 R2 version using DNS manager and PowerShell. Then the steps for creating a DNS forwarder were explained with pictures. If you are interested in MikroTik, you can refer to the DNS configuration tutorial in MikroTik.