Captive.apple.com resolves to captive portal domain
Captive portal domain fails to resolve because the portal is private and Google DNS doesn’t know about it.
Might work for captive portals that Google can resolve though?
echo "nameserver 192.168.1.1" | sudo tee /etc/resolver/captive.apple.com