LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2022, 12:37 AM   #1
Scooper128
LQ Newbie
 
Registered: Dec 2021
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Debian 11 - Cannot Connect to Web sites that use HTTPS


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
 
Old 12-11-2022, 01:52 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
what you are trying to do is have a nameserver to your router and your router is where you put the DNS ips.

see
https://support.quad9.net/hc/en-us/a...20-3-Cinnamon-

so I think resolv.conf should read the gateway to your router....not sure if yours is correct as you have not named your router
I have a dlink so mine is
Quote:
nameserver 192.168.1.1
then login to your router
dlink is http://192.168.1.1/page/login/login.html

then find your DNS settings for me its Internet -> primary and secondary DNS settings
copy and paste the correct ips, without "nameserver" into those boxes and save

Last edited by aus9; 12-11-2022 at 01:53 AM.
 
1 members found this post helpful.
Old 12-11-2022, 12:58 PM   #3
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Just use dig to make sure the nameserver works:

dig @192.168.1.1 -t a www.google.com

and so forth. If it doesn't respond, there isn't a nameserver at the ip.

You can use curl or wget to test the https (less overhead), to debug it. I suspect it might be an SSL or CA problem is https does not work. Just "curl https://www.google.com" and see the output.
 
Old 12-11-2022, 04:47 PM   #4
Scooper128
LQ Newbie
 
Registered: Dec 2021
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
I couldn't get anything to work, so I reinstalled Debian with the "standard system utilities" (it was already a fresh install of Debian, so reinstalling it didn't really have any consequences), and now everything works fine.
 
  


Reply

Tags
debian, dns, ethernet, networking



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the best ways and practices to manage local SSL certificates with my own CA, to get local HTTPS sites like https://testsite.local ? ZhaoLin1457 Slackware 11 02-04-2021 04:15 PM
Clients cannot connect to Apache when using HTTPS to view web pages. mehoggan Linux - Server 2 06-01-2009 03:10 PM
Can't connect to HTTPS sites using firefox ceantuco Linux - Newbie 12 05-06-2008 07:30 PM
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration