Use different DNS servers for different domains?

5,150

Solution 1

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

Solution 2

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:
5,150

Related videos on Youtube

simplyblue
Author by

simplyblue

I Hate Programming. I Hate Programming. I Hate Programming. It works! I Love Programming. Java is to JavaScript what Car is to Carpet. XML is like violence - if it's not working for you, you're not using enough of it. It should work!- a programmer's last words. UNIX is simple. It just takes a genius to understand it's simplicity.-- Dennis Ritchie Any fool can write code that a computer can understand. Good programmers write code that humans can understand.-Martin Fowler

Updated on September 18, 2022

Comments

  • simplyblue
    simplyblue almost 2 years

    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.

  • JdeBP
    JdeBP over 12 years
    -1 for suggesting an approach that doesn't work.
  • simplyblue
    simplyblue over 12 years
    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.
  • Momshad Dinuri Alvee
    Momshad Dinuri Alvee over 11 years
    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
  • Mels
    Mels almost 11 years
    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.