By default name servers resolve the queries using their own zone file. Or use root hints in case of internet. DNS conditional forwarder is way to direct DNS server to use another DNS for name resolution for a specific domain.
By default whenever a DNS receives a request, server use its internal database called zone file to resolve the request. If it can not find anything, it will go to the public DNS servers through root hints to find appropriate DNS for name resolution.
However there is another way. If you have applied DNS conditional forwarding, instead of going towards public DNS servers it will forward the request to another known DNS and get it resolved from there. Also it will keep the response in its cache to use for future purpose. For example a DNS server having zone yourdomain.com can not resolve your partner domain partnerdomain.com. If you have applied forwarding in your DNS for partnerdomain.com and pointed such queries to partner DNS server. Your clients can resolve partnerdomain.com related through your DNS server and not needed to go to partner DNS server directly.
How to Apply Conditional Forwarding in DNS
- Open DNS Console.
2. Right click the conditional forwarders and select New conditional forwarder.
3. Provide the domain name for which you want to apply forwarding. Add the IP address of DNS. Select time out means number of seconds before forward queries time out (5 sec by default). After validation is ok and you see a green tick.
4. Click OK. Conditional forwarding is ready.
Use and Advantages Of Conditional Forwarding In DNS
- Internal and Partner Name Resolution: If you have internal, partner or local domains that you want to resolve quickly, you can use DNS forwarder.
- Less Internet Bandwidth: Typically DNS forwarders are used on local networks, partner network, VPN, extranet etc. As a result internet less queries are sent outside. It saves internet bandwidth. Also your DNS will maintain local cache and future queries will be resolved locally. It will further optimize you internet traffic.
- Better Security: Since internet is mostly not involved here and private network are used, this will be more secure.
- Quick Response and Better User Experience: Since local DNS cache is locally maintained, the response will be quicker. This will improve the performance significantly for frequently access websites.
- Safe Browsing: It is possible that you can use DNS forwarding to block some websites and specific domain too. (However there are better alternates available in the market to control internet access)
- Private Name Resolution: In some cases DNS servers are needed to be kept private. You may not want to put it on internet but still want to resolved the queries for your corporate users. DNS forwarding helps in implementing such scenarios.
Apply windows DNS conditional Forwarders Using PowerShell
- PowerShell to apply forwarding to a single DNS server.
- Add-DnsServerConditionalForwarderZone -name partnerdomain.com 192.168.0.5
- PowerShell to apply forwarding to a multiple DNS server.
- Add-DnsServerConditionalForwarderZone -name partnerdomain.com 192.168.0.5,192.168.0.6
Troubleshooting DNS Forwarding
- DNS record are missing: The administrator need to create the DNS record in case DNS record does not exist.
- Port blocked: It is often observed configuration is correct but the port 53 is blocked either on network or operating system firewall.
- Aging and scavenging: Scavenging is common cause of DNS issue. If you have misconfigured DNS aging or scavenging. No refresh and refresh intervals are too low, it may result into name resolution issues.
- DNS Firewall & Security: Some DNS firewalls and security tools restrict the traffic. You may need to check in your network if such security is implemented and act accordingly.
- DNS Misconfigurations: You maybe be pointing to the wrong DNS server. In such case you need to rectify TCP/IP settings.
Conditional Forwarding in Active Directory Environment
DNS forwarder is frequently used in active directory environments to resolve interdomain, inter-forest, partner and third party name resolution. In complex environments having multiple forests or domain, DNS forwarding helps in quick easy and reliable name resolution without relying on public networks.
You need to have a very good understanding of DNS server to get understand completely about forwarding. The article is written by using Microsoft Windows DNS Server 2019 standard operating system. For other windows servers operating systems process remains same.
Frequently Asked Questions (FAQ)
Yes. You can use DNS forwarding feature for as many domains as you want.
DNS server always use port 53. Regardless its a ordinary DNS request or forwarding query.
No. It is not mandatory to configure forwarding at all. You need to configure only if you want to resolve a specific domain though a specific target DNS server.
DNS forwarder work on the server level. Any query regardless of domain name is forwarded to next DNS server if it can not be resolved locally. However in conditional forwarding only specified domain relate query will be forwarded to next DNS.
If you have implemented both. DNS conditional forwarders has more priority than forwarder. Any query will be tested against conditional forwarder first and forwarder later.
No. DNS conditional forwarding can be setup in Non-Active directory environment too. Regardless there is active directory or not. Its always optional.
-
DNS Rebound Robin
Discover how DNS round robin can effortlessly balance traffic across multiple servers, boosting your website’s performance and reliability.
-
What Is DNS Ad Blocking
Learn how DNS ad blocking stops ads at the network level, boosting speed, protecting privacy, and improving browsing in your network.
Leave a Reply