Windows Workstations (Conditional DNS Servers)

Posted on 2013-11-18
Last Modified: 2013-11-18
Is it possible to have DNS requests sent to different servers within Windows conditionally (e.g. all requests for resolution of to and then everything else to

The premise being similar to conditional forwards on DNS servers but for clients.
Question by:DaveQuance
  • 5
  • 4

Expert Comment

by:Trenton Knew
ID: 39656805
only way I can think of is to manually map via the hosts file


Author Comment

ID: 39656842
Yes but that's for individual FQDNs and is static. I'm hoping for a way to contact a DNS server and pull the current records for the entire domain.

Expert Comment

by:Trenton Knew
ID: 39657076
I'm not sure I follow what you mean by entire domain.  do you mean you also want to pull records for subdomains too?  I'm having trouble understanding because If you're looking to contact an alternate DNS server for specific domain names, that should be an option in the hosts file.  If the hosts file is not sufficient, or if the targets are changing and need to be name resolved on the regular, than you will probably have to set up a dns server somewhere on your local network or on the local machine

Author Comment

ID: 39657239
"If you're looking to contact an alternate DNS server for specific domain names"

So the hosts file does does have options for something like this? I'll do some web searches on hosts file options.

 I have a standalone workstation with normal ISP provided DNS servers. I have a site to site VPN to another location that contains some internal zones. I'd like to be able to reference those records for various reasons (some certificate related).
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.


Author Comment

ID: 39657512
I've been looking at options for the hosts file but I don't really see anything other than:

<ip>     <name>

lmhosts didn't seem to be helpful for this goal either.

Accepted Solution

Trenton Knew earned 70 total points
ID: 39657745
hosts is for domain resolution, whereas lmhosts is for local windows machine hostname resolution.

there is an article on SuperUser that suggests using a DNS proxy on your local machine, which supports wildcards in mappings.  maybe some other proxy DNS service can run on that local machine.

would this help?

Expert Comment

by:Trenton Knew
ID: 39657754
The only other thing I can think of, is to configure a local DNS on the machine, or on the local network.  Make your internally or local controlled DNS the primary, and then use your other name server as the backup

Author Comment

ID: 39657971
The DNS Proxy you mentioned reads like it will do the job. The quick test I put together didn't work as I wanted but I haven't had time to fully read the info on it (so I'm probably just doing something wrong). I'll let you know tomorrow when I have more time to spend on it.

Author Closing Comment

ID: 39658016
The solution of TrentonKnew provided, Acrylic DNS Proxy Service, did exactly what I was looking for.

Note: If you use it, there's an allowed IP list to use access the service that doesn't allow anything by default (including the local machine).

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Retire Active Directory server 3 59
IIS on 2012 R2 server local access works, remote does not 12 58
Exchange 2016 : 451.4.4.0 dns query failed exchange 10 42
MX Backup 4 59
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (, affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now