Mac Captive Portal Not Showing? Check Your DNS
Custom DNS can make a captive portal look broken by skipping the network’s resolver, so restoring automatic DNS brings the login page back.
If your Mac joins a Wi-Fi network but the captive portal login page never appears, check your DNS settings before you waste time restarting the connection or blaming the network.
I ran into this at a Capital One Lounge. My Mac connected to the Wi-Fi, but the login page never opened. Another laptop on the same network worked fine, so the problem was clearly local to this machine.
The culprit turned out to be custom DNS.
What was happening
I had recently configured Cloudflare DNS on my Wi-Fi connection:
1.1.1.1
1.0.0.1When your Mac joins a Wi-Fi network, DHCP typically hands it three things: an IP address, a default router, and a DNS server. On captive portal networks, like lounges, hotels, cafes, airports, and airplanes, the login flow often depends on that DNS server, for example to redirect requests until you sign in.
Because I had hard-coded Cloudflare DNS, my Mac skipped the network's DNS server, and the login page never appeared. Google DNS, Quad9, or any other custom resolver can break it the same way.
The fix
Reset Wi-Fi DNS back to automatic so macOS can use the DNS server the network provides.
From Terminal:
networksetup -setdnsservers Wi-Fi EmptyOr in macOS:
System Settings -> Wi-Fi -> Details -> DNSThen remove the custom DNS entries.
After that, disconnect and reconnect to the Wi-Fi. Once the network's DNS was being used again, the captive portal showed up immediately.