News for hackers. Stuff that matters.
Re:How Windows decide whether your computer has limited or f... by silisili on Friday November 18, 2022 @08:53PM (#33665879)
Why not just fire off a DNS request ? Not blocked by captive portals, and you get free caching.
Re:How Windows decide whether your computer has limited or f... by Mogzol on Friday November 18, 2022 @09:02PM (#33665940)
The whole point is to determine if you have full internet access, so you want to make sure that an HTTP request returns the data you're expecting. You may be able to get DNS responses but not have full internet access, like when on a public wifi that redirects all requests to a login page.
Re:How Windows decide whether your computer has limited or f... by Eleison23 on Saturday November 19, 2022 @06:09PM (#33675918)
What is "full" Internet access?

I mean really, what does it mean to you, or to Windows, that I have "full" access to the Internet?

For me personally, I only visit a few walled gardens, so as long as I had my Google, my Wikipedia, and my work-related sites, I wouldn't miss 99.99% of the Internet anyway.

But what if your ISP blocks a whole bunch of ports? What if Adware has taken over 33% of your DNS space? What if you're behind a Great Firewall of <Dictatorship>? What if there's some sort of Balkanization or segmentation of your side of the 'net and you can't reach a lot of stuff? What if Cloudflare's down again?

Re:How Windows decide whether your computer has limited or f... by Mogzol on Saturday November 19, 2022 @09:18PM (#33677435)
Yes, "full" internet access is a hard to define term and this simple test doesn't cover all possible cases. But it will work in probably 99.99% of cases and honestly I think that's good enough. If it doesn't work you end up with a little "no internet connection" icon in your taskbar and that's about it. You can still use the connection, so I don't think it's a big deal that this test isn't 100% accurate. It's still more useful to the majority of users to have a slightly inaccurate test than to have no test at all.
Re:How Windows decide whether your computer has limited or f... by sokoloff on Friday November 18, 2022 @08:55PM (#33665894)
Unless you know what the DNS request is "supposed to return", you can't know that just getting any DNS response indicates that you have full Internet connectivity.
Re:How Windows decide whether your computer has limited or f... by silisili on Friday November 18, 2022 @08:59PM (#33665916)
They control the record contents just as they would some text in a file on some server, and could be checked in a similar manner.
Re:How Windows decide whether your computer has limited or f... by sokoloff on Saturday November 19, 2022 @07:26AM (#33669510)
Sorry, you were imagining the use of a TXT record (I assume) and that would work better than an A record inquiry that I was considering.

It still wouldn’t find http filtering, but it would work better than I initially gave it credit.

Re:How Windows decide whether your computer has limited or f... by iudqnolq on Friday November 18, 2022 @08:55PM (#33665888)
> and you get free caching

Mayeb that's the problem?

Re:How Windows decide whether your computer has limited or f... by silisili on Friday November 18, 2022 @08:57PM (#33665901)
Howso? You still need internet access to hit the recursive.
Re:How Windows decide whether your computer has limited or f... by zinekeller on Friday November 18, 2022 @08:59PM (#33665926)
Mindless routers (which are frighteningly many) that cache the results and won't show the true state of upstream connection, which is an important thing. There are a lot less transparent HTTP proxies that wouldn't respect no-store than mindless routers trying their best to cache results.
Re:How Windows decide whether your computer has limited or f... by sk5t on Friday November 18, 2022 @11:18PM (#33666881)
Don't need internet access to read a cached record from a DNS service on localhost, on the LAN, etc.
Re:How Windows decide whether your computer has limited or f... by armada651 on Friday November 18, 2022 @10:19PM (#33666543)
They do, if you look at the docs Raymond linked that's actually the first step.

However that doesn't tell you about the presence of a portal or if HTTP traffic is actually possible.