Can a browser use a different DNS than the rest of the PC?

taltamir

Lifer
Mar 21, 2004
13,576
6
76
I travel a lot for work and I noticed that almost every hotspot I go to uses DNS spoofing attack to redirect me to a login page. even the ones that are free and require merely a click of "I accept the terms and conditions" button. This login typically remembers your connection for about 24 hours (presumably via mac address, but that is a guess)

If I set openDNS as my choice of DNS server (instead of acquiring it automatically from router) I can get significantly faster and more reliable browsing experience. But I am unable to reach the login page and as such cannot have an internet connection.

I am wondering if anyone knows of a program that can resolve this issue somehow. Such as by making a browser use a different DNS server than the network connection
 

code65536

Golden Member
Mar 7, 2006
1,006
0
76
That doesn't make sense: the click-to-accept in the captive portal page is handled by the browser, so having the browser set to your own DNS server won't solve anything.

What you want is a way to switch from dhcp DNS to static DNS quickly, which you can do with batch files and netsh interface ipv4 set dnsservers.

(Also, Google Public DNS is much better than OpenDNS, as the latter pulls their own shenanigans and do some really naughty things like not handle NXDOMAIN properly whereas the former is actually complaint with the way DNS is supposed to work.)
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
That doesn't make sense: the click-to-accept in the captive portal page is handled by the browser, so having the browser set to your own DNS server won't solve anything.

It didn't even occur to me that some people might use only one browser.
I use chrome, iron, waterfox, palemoon, and IE.

Obviously I would have to leave one of them (eg, IE) to use the default DNS to reach said captive login page. In fact I already HAVE to do this because I use "reopen tabs" option. so if I was to open chrome 20 tabs will all get redirected to that captive login page. worse, because its done via dns spoofing I could not use the back button to return to the proper page. So I always use IE (set to open just one home page, google) to trigger those captive pages

Even if you use only one browser. such a browser fix should be easy to toggle on/off

What you want is a way to switch from dhcp DNS to static DNS quickly, which you can do with batch files and netsh interface ipv4 set dnsservers.

thank you for this suggestion. I will give it a try
 
Last edited:

Fardringle

Diamond Member
Oct 23, 2000
9,190
755
126
You are referring to a Captive Portal. It doesn't have anything to do with DNS. It is built in to the network you are connecting to, and if you don't accept the connection agreement, then you will not be able to do anything on the network, no matter what DNS server you try to use.

You can always set your computer to use the OpenDNS server addresses for your web browsing (no, you can't do this for just one browser since it is a Windows setting, not a browser setting), but you'll still have to accept that captive portal agreement before you can do anything else on the Internet.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
You are referring to a Captive Portal. It doesn't have anything to do with DNS. It is built in to the network you are connecting to, and

It has everything to do with DNS. captive portal works via DNS spoofing.

if you don't accept the connection agreement, then you will not be able to do anything on the network, no matter what DNS server you try to use.
I am aware, this has nothing to do with anything being discussed in this thread.
I didn't think that using my own custom DNS will allow me to connect to the internet.
I want to switch to a custom DNS for the massive speedup that comes from using a quality DNS. I want to make that switch AFTER I have willfully allowed my DNS to be spoofed to lead me to the captive portal and AFTER I have willingly clicked through whatever was needed to grant me full network access. Only then do I want to switch DNS providers from the one supplied by the router to one of my choice
 

John Connor

Lifer
Nov 30, 2012
22,840
617
121
It should be a matter of accepting the captive portal and then changing your Windows DNS. Wouldn't?
 

code65536

Golden Member
Mar 7, 2006
1,006
0
76
Or a couple of batch files on the desktop. Double-click on one before the portal, the other after. Keep it simple.
 

Fardringle

Diamond Member
Oct 23, 2000
9,190
755
126
It has everything to do with DNS. captive portal works via DNS spoofing.


I am aware, this has nothing to do with anything being discussed in this thread.
I didn't think that using my own custom DNS will allow me to connect to the internet.
I want to switch to a custom DNS for the massive speedup that comes from using a quality DNS. I want to make that switch AFTER I have willfully allowed my DNS to be spoofed to lead me to the captive portal and AFTER I have willingly clicked through whatever was needed to grant me full network access. Only then do I want to switch DNS providers from the one supplied by the router to one of my choice

OK, that clarifies the question a bit. Your DNS is NOT being spoofed in any way. Set your connection to use the OpenDNS servers. You'll still be redirected to the captive portal screen when you first connect to the network since that is a function of the portal itself and has absolutely nothing to do with the DNS settings. (assuming that the portal is set up correctly)
 

code65536

Golden Member
Mar 7, 2006
1,006
0
76
OK, that clarifies the question a bit. Your DNS is NOT being spoofed in any way. Set your connection to use the OpenDNS servers. You'll still be redirected to the captive portal screen when you first connect to the network since that is a function of the portal itself and has absolutely nothing to do with the DNS settings. (assuming that the portal is set up correctly)

It depends on how the portal works. Some are better implemented than others. A smart one will just intercept an inbound HTTP response and replace it with a HTTP 302 pointing to the portal. A dumb one will rely on you connecting to their DNS server.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
OK, that clarifies the question a bit. Your DNS is NOT being spoofed in any way. Set your connection to use the OpenDNS servers. You'll still be redirected to the captive portal screen when you first connect to the network since that is a function of the portal itself and has absolutely nothing to do with the DNS settings. (assuming that the portal is set up correctly)

all the portals I have encountered worked via DNS spoofing.
Setting your DNS to any alternative DNS prevents it from reaching the captive portal. This is why I asked the question to begin with, if I do not willingly fall into the dns spoof I cannot reach the portal and cannot authenticate it.

Furthermore, there are actually tricks, for example, certain hotspot provider who i will not name lets all images through (for their advertising), meaning you can surf the internet just fine by using a greasemonkey script that modifies the url to trick it into thinking its a jpg file.

We are talking about really shoddy programming here
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |