I am on a computer running a newly installed Debian 11 that is connected to Ethernet. When I try to ping a Web site that uses HTTPS, or load it with w3m, it just loads forever. However, when I use ping or w3m to connect to Web sites that use HTTP, it works (only some HTTP Web sites seem to work though, and the only ones that I have been able to connect to are wa.gov and motherfuckingwebsite.com). Also, when I ping the IP address of any Web site, regardless of whether it uses HTTP or HTTPS, I actually get a response, which seems to indicate that this may be a problem with the DNS.
Here is my /etc/resolv.conf file (I modified this file a lot trying to fix the problem, right now it's using a Quad9 DNS server. I also don't know if my router's IP address should be in this file, but it was there originally and removing it did not fix the problem)
Code:
nameserver 192.168.0.1
nameserver 9.9.9.10
nameserver 149.112.112.10