top of page

Windows DNS (Domain Name System) Server - Query, Forwarding

Knowledge Base Questions & Answers

What is “DNS Conditional Forwarding”?

  • “DNS Conditional Forwarding” is a feature that allows DNS servers to forward queries for specific domains to designated forwarder DNS servers based on certain conditions.

  • Their settings consist of a domain name and the IP (Internet Protocol) address of one or more DNS servers.

  • “DNS Conditional Forwarding” is commonly used with private domain DNS servers.

  • It takes precedence over “DNS Forwarding.”

  • “DNS Conditional Forwarding” decreases DNS traffic and increases the speed of resolving queries.

 


 

Experience-Based/Practical Questions & Answers

What are the default query settings on the Windows DNS server?
The recursion. It is enabled by default.

 

What can be done when there is a requirement for DNS clients in separate domains to resolve each other's names without having to query DNS servers on the internet, such as in the case of a company merger?
You can use the following:

  • DNS Forwarding

  • DNS Conditional Forwarding

 

How do you locate “DNS Forwarding” settings?

  • “DNS Forwarding” is configured on the DNS server level.

  • The path is as follows: “DNS Manager,” MMC (Microsoft Management Console) snap-in -> DNS - > Server-Name -> Properties -> Forwarders.

How do you locate the “DNS Conditional Forwarding” settings?

  • “DNS Conditional Forwarding” is configured on the DNS server level.

  • The path is as follows: “DNS Manager,” MMC snap-in -> DNS - > Server-Name -> “Conditional Forwarders” -> “Conditional Forwarders” DNS domain.

Do you need to configure forwarders in DNS?
No. By default, Windows DNS Servers use the “Root Hint” servers on the internet. However, you can configure forwarders and conditional forwarders to send DNS queries directly to particular DNS servers to speed up name resolution.


Suppose there is no specification on the DC (Domain Controller)/DNS server of internet DNS servers (on network adapter or forwarding). How does it resolve names such as microsoft.com on the internet?

The DNS server uses the “Root Hint” servers.


By default, if the DNS name is not found in the computer’s DNS cache or local Host file, what is the first step the client takes to resolve the FQDN (Fully Qualified Domain Name) name into an IP address? 
Send a recursive query to the primary DNS server specified on the network interface configuration.

 

Give me an example of how DNS queries work if:

  • The DNS name it.itguidespro.com needs to be resolved.

  • The local DNS server uses default query settings.

  • The requested DNS name is not your company domain name.

  • There are no configured forwarders on the local DNS Server.

  1. Type in the internet browser DNS name it.itguidespro.com.

  2. The computer tries to find a DNS record on its DNS cache or Host file.

  3. If a DNS record cannot be found, then the computer sends a recursive query to the local DNS server. Local DNS Server is looking for DNS record in its DNS zones or cache. The local DNS server sends DNS information to the client if the record is found.

  4. If a DNS record is not found, then the local DNS server sends the query to the root DNS server.

  5. Root DNS Server sends information about .com DNS servers to the local DNS server.

  6. The local DNS server sends a query to the .com DNS server.

  7. .com DNS server sends information about the authoritative DNS servers of itguidespro.com to the local DNS server.

  8. The local DNS server sends a query to itguidespro.com DNS server.

  9. itguidespro.com DNS server sends DNS record information (it.itguidespro.com) to the local DNS server.

  10. The local DNS server sends resolved DNS information to a client (IP address of it.itguidespro.com website).


Give me an example of how DNS queries work if:

  • The DNS name it.itguidespro.com needs to be resolved.

  • The local DNS server uses default query settings.

  • The requested DNS name is not your company domain name.

  • Forwarders are configured on the local DNS server.

  1. Type in the internet browser DNS name it.itguidespro.com.

  2. The computer tries to find DNS records on its DNS cache or Host file.

  3. If a DNS record cannot be found, then the computer sends a recursive query to the local DNS server. The local DNS Server is looking for DNS records in its DNS zones or cache. The local DNS server sends DNS information to the client if the record is found.

  4. If a DNS record cannot be found, the local DNS server queries the DNS servers specified in the “DNS Forwarding” settings.

  5. The local DNS server receives the answer from the “DSN Forwarding” server.

  6. The local DNS server sends resolved DNS information to the client (IP address of it.itguidespro.com website).

  • Note: if the forwarders cannot resolve the query, the local DNS server might use “Root Hints” to resolve the name through an iterative query process.

 

Give me an example of how DNS queries work if:

  • The DNS name it.itguidespro.com needs to be resolved.

  • Recursion and forwarding on the local DNS server are disabled.

  • The requested DNS name is not your company domain name.

  1. Type in the internet browser DNS name it.itguidespro.com.

  2. The computer tries to find a DNS record on its DNS cache or Host file.

  3. If a DNS record cannot be found, then the computer sends a recursive query to the local DNS server. Local DNS Server is looking for DNS record in its DNS zones or cache. If the record is not found, the local DNS server responds to the client, indicating it cannot resolve the DNS name.

  4. The client may display an error message or fail to access the desired resource associated with the DNS name.
     

How can you prevent DNS query hijacking or DNS spoofing attacks?

  • Implement DNSSEC (Domain Name System Security Extensions) for data integrity and authentication.

  • Configure your DNS resolvers to use secure and reputable DNS servers.

  • Implement a DNS Firewall (DNS Filtering) to detect and block DNS spoofing attempts. These solutions can help identify and prevent DNS queries to known malicious domains or IP addresses.
     

What are the steps to troubleshoot DNS query issues?

  • Test DNS Resolution. Use tools like nslookup to perform DNS queries and check the responses.

  • Check the DNS cache. Clear the DNS cache on the client or DNS server to eliminate the possibility of stale or incorrect records causing resolution problems.

  • Check if the DNS server is accessible.

  • Check network settings and firewall rules on the local computer.

  • Review the DNS server configuration, including forwarders, caching settings, and zone information.

  • Verify that the DNS server can communicate with other DNS servers in the hierarchy.

  • Test with alternative DNS Servers. Try using different DNS servers to perform the query and compare the results.

bottom of page