Avatar of beardog1113
beardog1113Flag for China

asked on 

how use different DNS servers for different domains on windows 7

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
Windows 7DNSNetwork Management

Avatar of undefined
Last Comment
Qlemo
Avatar of EVeuger
EVeuger
Flag of Netherlands image

On DNS1 you could set a conditional forwarder to DNS2 for the domain.com.
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

you will need to do route add x.x.x.x -p (permanent)
Avatar of beardog1113
beardog1113
Flag of China image

ASKER

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

thanks
Avatar of EVeuger
EVeuger
Flag of Netherlands image

I didn't understand that part about cheating, what exactly you want to do there?
Avatar of EVeuger
EVeuger
Flag of Netherlands image

Do you want to resolve domain.com only for yourself?
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

hmm yes spying would be a better phrase I think
Avatar of beardog1113
beardog1113
Flag of China image

ASKER

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
Avatar of EVeuger
EVeuger
Flag of Netherlands image

You could add it to your hosts file, name resolution looks at your hosts file before the DNS server.
Avatar of Premkumar Yogeswaran
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
https://www.experts-exchange.com/Networking/Protocols/DNS/A_323-DNS-Troubleshooting-made-easy.html

Regards,
Prem
Avatar of footech
footech
Flag of United States of America image

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?
Avatar of beardog1113
beardog1113
Flag of China image

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of beardog1113
beardog1113
Flag of China image

ASKER

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.
Avatar of Qlemo
Qlemo
Flag of Germany image

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.
Windows 7
Windows 7

Windows 7 is an operating system from Microsoft. Features include multi-touch support, a redesigned Windows Shell with a new taskbar, referred to as the Superbar, a home networking system called HomeGroup, and performance improvements.

48K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo