It doesn't. You are correct. For any unencrypted WiFi but with a paywall / login page for actual usage - if the software is worth anything, DNS is hijacked and re-routed for unapproved clients.
A good system will allow DNS instead of poisoning the clients with thresholds to block DNS tunneling.
Second, what do you do when the client is configured to require DNSSEC responses?