Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have windows 7,i want to configure different dns servers for different websites. My isp's login page only works with his dns server,if i use open dns..i cant load up my isp login page. So i want to use my isp's dns server to load isp;s login page and for other sites i want to use OpenDns.

Is there a software to do this? i would prefer a batch file or something like that. Thanks.

share|improve this question
    
You asked this last week. –  JdeBP Feb 9 '12 at 18:05

3 Answers 3

up vote 0 down vote accepted

Keep things simple.

If the only problem you have is the access to the ISP login page, just add the url and ip adress of this page in the HOSTS file to avoid a DNS request for this web page...

The syntax is {URL} {at least one space} {IPv4 Address}

Somethings like: MyISPLoginPage.com 12.123.123

BTW: if you want to discover the bests DNS servers for you, use this software: NameBench

http://code.google.com/p/namebench/

Hope this help. Let us know.

P.S. C:\Windows\System32\drivers\etc\HOSTS

share|improve this answer
    
Can i use OpenDns dns server address in the 'Preferred Dns server' field, and my isp's dns server in the 'Secondary Dns server' field.So that when i load up my Isp's login page,the Preferred Dns server fails and the secondary dns server is used. –  Manoj Kumar Feb 10 '12 at 3:39
    
Yes, that's a perfect example of why there are two entries for dns. –  jdh Feb 10 '12 at 11:44
1  
The syntax is {hostname} {ipv4 address} the hosts file does not know anything about URLS which include things like protocol specifiers dictionary.reference.com/browse/url –  Mark0978 Nov 20 '12 at 14:25
    
The primary DNS won't fail, it will return a valid response stating that the name doesn't exist (according to its records). The client won't (and shouldn't) fail over to the secondary DNS server in that case - that would only happen when it receives no response at all. –  Mels Aug 13 '13 at 8:52

If its only your ISP's domain that's a problem, you can edit your host file to hardcode that value and use opendns for everything else.

share|improve this answer

In Windows it isn't possible to use a different DNS for different websites. If only your ISP's page doesn't work in OpenDNS, you could configure your hosts file with the IP of the website and use OpenDNS for DNS resolving.

Another option would be to use a secondary DNS. In Windows you can configure several DNS servers, number 1 would be your ISP's DNS, number 2 openDNS or the other way around.

This link describes how to configure your DNS:

http://www.sevenforums.com/tutorials/15037-dns-addressing-how-change-windows-7-a.html

share|improve this answer
1  
-1 for suggesting an approach that doesn't work. –  JdeBP Feb 9 '12 at 18:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.