how use different DNS servers for different domains on windows 7

beardog1113
beardog1113 used Ask the Experts™
on
hello experts
DNS1 is configured on my NIC adapter, there is a zone domain.com on DNS1, this zone is only for cheating someone the host resolve result is incorrect, if i want to access domain.com, i need change to DNS2 manually every time, that is not convenient.
so i  want to know if there is a method on windows 7, DNS1 is my primary server, once i access domain.com send the query to DNS2? something like route add, different destination go to different gateway.

thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
On DNS1 you could set a conditional forwarder to DNS2 for the domain.com.

Commented:
you will need to do route add x.x.x.x -p (permanent)

Author

Commented:
hi EVeuger
but i need the wrong resolve result on DNS1, for cheating.

thanks
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Commented:
I didn't understand that part about cheating, what exactly you want to do there?

Commented:
Do you want to resolve domain.com only for yourself?

Commented:
hmm yes spying would be a better phrase I think

Author

Commented:
ok, let say as that
1. DNS1 is not managed by me, so i can't configure forwarder on it.
2. DNS1 is configured on My DHCP, and we must using it as DNS1.
3. result about domain.com from DNS1 is incorrect, but from DNS2 is correct.
4. access network via DNS1, once i access xxx.domain.com, send the name resolve request to DNS2, not DNS1.

does it possible do something on my local laptop?

thanks

Commented:
You could add it to your hosts file, name resolution looks at your hosts file before the DNS server.
Premkumar YogeswaranSr. Analyst - System Administrator

Commented:
Yes Eveuger is correct.
You need to configure the host file as below

domainname         DNS2_IP_Address

Additionally refer this E-E Article for DNS function
http://www.experts-exchange.com/Networking/Protocols/DNS/A_323-DNS-Troubleshooting-made-easy.html

Regards,
Prem
Top Expert 2014

Commented:
How about configuring your NIC statically to use DNS2 (you could still get your IP from DHCP)?  Or do you need to use DNS1 all the time except when trying to reach the specific domain?

Author

Commented:
hello footech
thats right, i need DNS1 all the time, except accessing specific domain.

and i can't edit host file, because domain.com i mentioned is a huge site, aaa.domain.com and bbb.domain.com are totally different IP address.

as you know "route add" can help me select gateway with different destination, i just want to know if something like this for DNS query.

thanks
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
What you are after is split DNS, and no, that does not work on Windows clients (without using 3rd party software).

No clue why you think you can't change your NIC's DNS server to DNS2, and then using forwarding there?

Author

Commented:
I've requested that this question be deleted for the following reason:

looks like there is no solution for my question.<br /><br />thanks for experts reply.
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015

Commented:
Even "You can't do that" can be a valid answer. We have shown (probably) all possible ways to do what you want, so it would be appropriate to accept either "You can't do it" (http:#a38023353) or the suggestions, or both. You also never explained why DNS forwarding isn't an option.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial