Insights
DNS forwarding: How your server picks the next hop
Domain Name System (DNS) forwarding is when your DNS server sends a lookup it can't answer locally to a configured upstream DNS server.

On this page
Domain Name System (DNS) forwardingOpens in a new tab is when your DNS server sends a lookup it can't answer locally to a configured upstream DNS server. The upstream resolves the name, and your server passes the reply back to the client. A default forwarder handles general lookups, while a conditional forwarder handles names under a specific domain.
In short:
- The client stays put. Your local DNS server returns the upstream's reply.
- Conditional rules route matches. Default forwarders handle other eligible lookups.
- Timeouts can trigger retries. A valid negative reply normally ends the lookup.
What happens when a DNS server forwards a query
A lookup can end at your local DNS server. If the server has a result in its cache or in a zone it hosts, it can reply without contacting an upstream. A DNS zone is a part of the DNS namespace that a server is responsible for answering for.
When your server forwards the lookup, it asks the upstream to resolve the name instead of following the DNS hierarchy itself. The request goes from the client to the local DNS server to the upstream. The reply takes the same path back, so the local server remains the client's point of contact.
How public and private names take different paths
Use a conditional forwarder when names under a specific domain need to go to a designated DNS server. On Windows Server, default forwarders handle unresolved queries when no hosted zone, conditional rule or delegation controls the lookup. A delegation points to the servers responsible for part of the DNS namespace.
Say you have one local DNS server, one default upstream for public lookups and an internal DNS server designated for corp.example. Assume the local server has no answer, no cache hit and no applicable delegation for either name below.
The query for portal.corp.example matches the corp.example rule, so the local server sends it to the designated internal server. The query for www.example.org doesn't match that rule, so the local server sends it to the default upstream. Both replies come back through the local server. The client uses the same DNS server for both names, even though the next hop changes.
When DNS tries another path
On Windows Server, a valid negative reply normally ends the lookup. NXDOMAIN means the name doesn't exist in the DNS view of the server that answered. A NODATA result means the name exists but has no record of the requested type. Check the name, the record type and which upstream answered before changing your forwarders.
A timeout means the local server didn't get a reply in time. Check whether it can reach the selected upstream, then check what it's allowed to try next. The server may try another upstream or resolve the name directly if its policy allows it and time remains.
For example, Windows Server can use root hints after it exhausts its default forwarders if recursion and root hint fallback are enabled and the lookup still has time left. Root hints tell the server where to start looking up public names through the DNS hierarchy without a forwarder.
Who gets to see a forwarded query
A forwarding rule chooses who gets the query, not whether that exchange is encrypted. For portal.corp.example, check the two hops separately: the client sends the name to the local DNS server, then the local server sends it to the designated internal server. The private name can reach the right server even if that second hop isn't encrypted.
Choosing a resolver's Internet Protocol (IP) address doesn't turn on encryption. On each hop where confidentiality matters, check that the sender uses an encrypted DNS protocol, such as DNS over Transport Layer Security (TLS), and that the receiving server accepts it. Encryption protects the query in transit, but the resolver that receives it can still see the name.
Where doxx.net fits. doxx.net encrypts DNS lookups and blocks unwanted domains on its private network. If that's what you need, download the appOpens in a new tab and connect a device.