LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't connect to home wifi with Elementary OS, I can with Windows (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-to-home-wifi-with-elementary-os-i-can-with-windows-4175652029/)

channelz28 04-12-2019 12:42 PM

Can't connect to home wifi with Elementary OS, I can with Windows
 
I have a dual-boot with Windows 10 and Elementary OS Loki. No issues with Windows, but Elementary has no Wifi. The signal shows up fine and the icon at the top shows a full connection, but nothing will load.

Everything has worked fine for the last 2 years, this only just happened. No changes that I know of. Wifi has always been slower with Elementary, but it suddenly stopped working completely. What can I check?

I'm not a Linux beginner, but I don't know much more than the basics...thanks!

frankbell 04-12-2019 05:16 PM

The first thing I would do is some tests to try to narrow down the problem.

Code:

ping google.com
ping 8.8.8.8
traceroute google.com
traceroute 8.8.8.8

If you can reach the ip address and not the domain name, it's likely a DNS problem of some sort. Traceroute can give you some indication of where the root to the host the connection is going awry.

Here's an article from Ubuntu that looks as if if will be helpful: https://help.ubuntu.com/community/Wi...eShootingGuide

channelz28 04-12-2019 10:49 PM

1 Attachment(s)
Thanks. I don't know how to save command line so I took a screenshot and attached it. It's also difficult since I have to switch back to windows to connect to the internet

That link looks pretty out of date. From my research, the Network Manager tool was removed from distros a long time ago. It looks like there is a replacement but I don't know how to use it. Is there an updated version of Wifi troubleshooting?

frankbell 04-13-2019 07:25 PM

It looks like you have a DNS problem. The domain name is not resolving, but the ip address is.

What is the contents of /etc/resolv.conf and what is the output of the command ip addr? (if the ip command is not presents, you can use ifconfig -a) You may have to run the commands as root.

You can see man resolv.conf for more.

ondoho 04-14-2019 02:06 AM

Quote:

Originally Posted by frankbell (Post 5984720)
It looks like you have a DNS problem. The domain name is not resolving, but the ip address is.

op's ping output paints a slightly different picture.
may i ask why you requested the traceroute output and what additional info it gives to the simple ping?

edit:
oops, i now see what op did there:
they started typing traceroute commands before ping was done.
in fact, there's no traceroute output at all.
ping 8.8.8.8 takes extremely long to get an answer (5s per ping). I wonder what that signifies.

channelz28 04-14-2019 02:56 PM

2 Attachment(s)
Hi, thanks for the help. Screenshots attached again. Let me know if there's a better way to display the results.

frankbell 04-14-2019 08:08 PM

According to the bit from resolv.conf, the nameserver is 127.0.1.1. That is not a valid entry. That address is a computer within the "localhost" configuration and is not out there on the WWW where nameservers are located (unless you have configured your own, which I am certain you haven't).

If your wireless is DHCP, is should be getting the nameserver setting via your router. Perhaps something has worked its way into your local settings to override that.

I do not know enough about the rest of Elementary OS to know how to correct this situation and do not have a way of experimenting with that right now. However, a web search for "troubleshoot name server ubuntu" (Elementary OS is based on Ubuntu) turns up a number of articles. Also, one hopes that someone more familiar with this sort of problem will join this thread.

This article looks like a good introduction to the concept of a nameserver: https://kerneltalks.com/howto/how-to...rver-in-linux/

I wish I could help more, but hopefully for my part I've been able to point you in the right direction.

channelz28 04-14-2019 08:51 PM

Thanks very much for info! I do know that Elementary is based on the previous Ubuntu LTS, I've used Ubuntu info to fix issues with Elementary before. I'll check out that link and see what I can make of it.

michaelk 04-14-2019 08:51 PM

Not necessarily an invalid entry, Elementary is Ubuntu based which uses dnsmasq as a local DNS cache.

Looks like the wireless adapter is being assigned an IP address and several IPV6 addresses. We also need to know the output of the route command.

/sbin/route

frankbell 04-14-2019 08:55 PM

Thanks for stepping in, michaelk. I will be following this thread with interest.

michaelk 04-14-2019 09:01 PM

I'm not trying to take over the thread...

frankbell 04-14-2019 09:03 PM

I didn't think you were. I reached the limits of my knowledge and am looking forward to learning stuff!

ondoho 04-15-2019 01:48 AM

channelz28, you can try to (temporarily) replace the 127.0.0.1 entry with 8.8.8.8 - one of google's dns servers.
not as a solution, but as a troubleshooting step.
if you have internet then (ping google.com etc.), we are at least one step closer to finding out what's going on.

i don't know how to troubleshoot dnsmasq issues.
let's start with
Code:

systemctl|grep -i dnsmasq
find /etc -iname '*dnsmasq*'


channelz28 04-15-2019 12:37 PM

1 Attachment(s)
I couldn't replace the 127.0.0.1 entry as it won't let me modify anything in the etc folder. Is there a way to get that privilege?

Screenshot of /sbin/route

ondoho 04-15-2019 01:39 PM

Quote:

Originally Posted by channelz28 (Post 5985293)
Is there a way to get that privilege?

repeat the command with "sudo" prepended?


All times are GMT -5. The time now is 06:18 PM.