The whole problem started at an airport, where I wasn't able to connect to WiFi on my Pop!_OS laptop. I Googled the problem on another device, and found this StackOverflow answer. Though the first answer (typing in route
to find the login IP address) worked in the first airport, it didn't on the second, so I tried all of the remaining answers.
First attempt:
sudo dpkg-reconfigure resolvconf
This gave me the message: resolvconf-pull-resolved.service is a disabled or a static unit, not starting it.
Second attempt:
Edited /etc/NetworkManager/conf.d/20-connectivity-debian.conf
. This didn't help either. Now, my DNS wouldn't work even when connecting to my iPhone hotspot, and, later, when I got home, to my regular home network! I tried deleting the contents of the file, but no luck.
Other things I tried: - Toggling Privacy/Connectivity Checking - Making sure my Network Proxy was off - Toggling WiFi - Rebooting - Restarting network service - Connecting to my iPhone hotspot over Bluetooth - Connecting to my iPhone hotspot over USB
Other Random Problems This Caused
- Running commands with
sudo
threw errorunable to resolve host
Right now: I'm connected to my home network. I can visit some sites (like 1.1.1.1
) but can't visit sites from the address bar. I'd like to keep the automatic DNS provided by my home network.
Tl;DR: How can I fix my internet? How can I connect to captive portal public wifi in the future?
/etc/resolv.conf
? In modern laptop linux this should normally just containnameserver 127.0.1.1
since your DNS is likely managed withdnsmasq
. You can temporarily fix the problem by making it point to some external DNS:nameserver 208.67.222.222
for OpenDNS.resolvconf
to run my DNS, but it couldn't install correctly since there wasn't internet?